Permalink
Browse files

Revert "VM: cast to fixnum looks suspicious"

This reverts commit 5027830.
  • Loading branch information...
1 parent 89d4f51 commit abf497938bed27ed474a7935317890884e2f55b2 @bjourne bjourne committed Nov 16, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 vm/mark_bits.hpp
View
@@ -112,7 +112,7 @@ struct mark_bits {
cell bit_index = position.second;
for (cell index = position.first; index < bits_size; index++) {
- cell mask = marked[index] >> bit_index;
+ cell mask = ((fixnum)marked[index] >> bit_index);
if (~mask) {
// Found an unmarked block on this page. Stop, it's hammer time
cell clear_bit = rightmost_clear_bit(mask);
@@ -132,7 +132,7 @@ struct mark_bits {
cell bit_index = position.second;
for (cell index = position.first; index < bits_size; index++) {
- cell mask = marked[index] >> bit_index;
+ cell mask = (marked[index] >> bit_index);
if (mask) {
// Found an marked block on this page. Stop, it's hammer time
cell set_bit = rightmost_set_bit(mask);

0 comments on commit abf4979

Please sign in to comment.