Skip to content

Commit 94da14a

Browse files
committed
fix: comparison of integer expressions of different signedness
1 parent 869a9f5 commit 94da14a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compressai/cpp_exts/rans/rans_interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ RansDecoder::decode_with_indexes(const std::string &encoded,
287287

288288
const auto cdf_end = cdf.begin() + cdfs_sizes[cdf_idx];
289289
const auto it = std::find_if(cdf.begin(), cdf_end,
290-
[cum_freq](int v) { return v > cum_freq; });
290+
[cum_freq](uint32_t v) { return v > cum_freq; });
291291
assert(it != cdf_end + 1);
292292
const uint32_t s = std::distance(cdf.begin(), it) - 1;
293293

0 commit comments

Comments
 (0)