Skip to content

Commit

Permalink
Use native_int and explicit conversion to native_int in Bignum#>>
Browse files Browse the repository at this point in the history
Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
  • Loading branch information
kronos authored and dbussink committed Dec 1, 2010
1 parent 98e3e5d commit a76db70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vm/builtin/bignum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ namespace rubinius {
}

if(!bit_inside_shift) {
int shift_mask = (1 << (shift % DIGIT_BIT)) - 1;
native_int shift_mask = ((native_int)1 << (shift % DIGIT_BIT)) - 1;
bit_inside_shift = (DIGIT(a, full_digits) & shift_mask);
}

Expand Down

0 comments on commit a76db70

Please sign in to comment.