floatconv: fix -Werror=sign-conversion

Updates #138
This commit is contained in:
Nigel Tao committed 2023-12-13 13:08:06 +11:00
1 parent 57f01ec3f6
commit 988af1c03c
2 files changed
+2 -2

No files matched your search

@@ -1336,7 +1336,7 @@ wuffs_private_impl__high_prec_dec__to_f64(wuffs_private_impl__high_prec_dec* h,
shift = (n < num_powers)
// The +1 is per "when targeting h->decimal_point being +0 or
// +1... when left shifting" in the powers comment above.
? (powers[n] + 1)
? (powers[n] + 1u)
: WUFFS_PRIVATE_IMPL__HPD__SHIFT__MAX_INCL;
wuffs_private_impl__high_prec_dec__small_lshift(h, shift);