mruby-bigint (mpz_get_str): add type cast to stop warning

This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-04-04 23:55:44 +09:00
parent bf36ba9d10
commit 9750513c25
+1 -1
View File
@@ -882,7 +882,7 @@ mpz_get_str(mrb_state *mrb, char *s, mrb_int sz, mrb_int base, mpz_t *x)
if ((base & (base - 1)) == 0) { // base is a power of 2
int shift = 0;
while ((1 << shift) < base) shift++;
mp_limb mask = base - 1;
mp_limb mask = (mp_limb)base - 1;
mp_dbl_limb value = 0;
int bits = 0;