From 5bfeb5bd220e31caac72b4c0f69a90b50f36dd02 Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Tue, 17 Dec 2024 20:50:41 +0100 Subject: [PATCH] Rename variable that's too similarly named --- include/osmium/io/bzip2_compression.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/osmium/io/bzip2_compression.hpp b/include/osmium/io/bzip2_compression.hpp index 35ae2541..99f4de40 100644 --- a/include/osmium/io/bzip2_compression.hpp +++ b/include/osmium/io/bzip2_compression.hpp @@ -296,13 +296,13 @@ namespace osmium { if (bzerror == BZ_STREAM_END) { if (!feof(m_file.file())) { void* unused = nullptr; - int nunused = 0; - ::BZ2_bzReadGetUnused(&bzerror, m_bzfile, &unused, &nunused); + int num_unused = 0; + ::BZ2_bzReadGetUnused(&bzerror, m_bzfile, &unused, &num_unused); if (bzerror != BZ_OK) { detail::throw_bzip2_error(m_bzfile, "get unused failed", bzerror); } - if (nunused != 0) { - std::string unused_data{static_cast(unused), static_cast(nunused)}; + if (num_unused != 0) { + std::string unused_data{static_cast(unused), static_cast(num_unused)}; ::BZ2_bzReadClose(&bzerror, m_bzfile); if (bzerror != BZ_OK) { throw bzip2_error{"bzip2 error: read close failed", bzerror};