Skip to content

Commit

Permalink
Fix signedness warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Zylann committed Jul 2, 2024
1 parent b106040 commit 2a80216
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion streams/sqlite/block_location.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ struct BlockLocation {
res = string_base10_to_int32(s.substr(pos), lod_index);
ZN_ASSERT_RETURN_V(res > 0, false);
pos += res;
ZN_ASSERT_RETURN_V(lod_index < constants::MAX_LOD, false);
ZN_ASSERT_RETURN_V(lod_index >= 0, false);
ZN_ASSERT_RETURN_V(lod_index < static_cast<int32_t>(constants::MAX_LOD), false);
location.lod = lod_index;

out_location = location;
Expand Down

0 comments on commit 2a80216

Please sign in to comment.