Correct type of decoded count

Decoded count is of type std::size_t, not int.
This commit is contained in:
Allan Bazinet
2025-07-15 14:15:50 -07:00
committed by Jordan Sherer
parent eb9c5f101a
commit f169a52189
2 changed files with 5 additions and 5 deletions

View File

@@ -2247,7 +2247,7 @@ namespace
// Decode entry point.
int
std::size_t
operator()(struct dec_data const & data,
int const kpos,
int const ksz,
@@ -2491,8 +2491,8 @@ namespace JS8
// the same time; specific decodes to be performed for this
// pass are in the `nsubmodes` bitset.
auto const set = m_data.params.nsubmodes;
int sum = 0;
auto const set = m_data.params.nsubmodes;
std::size_t sum = 0;
// Let any interested parties know that we've started a run
// for the set of modes requested.

View File

@@ -101,7 +101,7 @@ namespace JS8
struct DecodeFinished
{
int decoded;
std::size_t decoded;
};
using Variant = std::variant<DecodeStarted,
@@ -139,4 +139,4 @@ namespace JS8
};
}
#endif
#endif