mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
fix: src\numeric.c(954): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
This commit is contained in:
committed by
Tomasz Dabrowski
parent
332a04af73
commit
4a0c9c9e31
+1
-1
@@ -951,7 +951,7 @@ lshift(mrb_state *mrb, mrb_int val, mrb_int width)
|
||||
(val < (MRB_INT_MIN >> width))) {
|
||||
goto bit_overflow;
|
||||
}
|
||||
return mrb_fixnum_value(val * (1u << width));
|
||||
return mrb_fixnum_value(val * ((mrb_int)1 << width));
|
||||
}
|
||||
|
||||
bit_overflow:
|
||||
|
||||
Reference in New Issue
Block a user