mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-bigint (mpz_get_str): add type cast to stop warning
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user