Skip to content

Commit dbac57b

Browse files
Charles RemesCharles Remes
Charles Remes
authored and
Charles Remes
committedMar 26, 2016
modify order of operations via parens to satisfy compiler
1 parent ae70c8f commit dbac57b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎machine/test/test_bignum.hpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ class TestBignum : public CxxTest::TestSuite, public VMTest {
648648
fix = neg_one->left_shift(state, width_minus1);
649649

650650
TS_ASSERT(kind_of<Fixnum>(fix));
651-
TS_ASSERT_EQUALS((native_int)(0UL - 1L) << (FIXNUM_WIDTH-1), fix->to_native());
651+
TS_ASSERT_EQUALS((native_int)((0UL - 1L) << (FIXNUM_WIDTH-1)), fix->to_native());
652652

653653
Integer* max_plus1 = one->left_shift(state, width);
654654

@@ -676,7 +676,7 @@ class TestBignum : public CxxTest::TestSuite, public VMTest {
676676
fix = neg_one->right_shift(state, neg_width_minus1);
677677

678678
TS_ASSERT(kind_of<Fixnum>(fix));
679-
TS_ASSERT_EQUALS((native_int)(0UL - 1L) << (FIXNUM_WIDTH-1), fix->to_native());
679+
TS_ASSERT_EQUALS((native_int)((0UL - 1L) << (FIXNUM_WIDTH-1)), fix->to_native());
680680

681681
Integer* max_plus1 = one->right_shift(state, neg_width);
682682

@@ -704,7 +704,7 @@ class TestBignum : public CxxTest::TestSuite, public VMTest {
704704
fix = as<Integer>(neg_two->pow(state, width_minus1));
705705

706706
TS_ASSERT(kind_of<Fixnum>(fix));
707-
TS_ASSERT_EQUALS((native_int)(0UL - 1L) << (FIXNUM_WIDTH-1), fix->to_native());
707+
TS_ASSERT_EQUALS((native_int)((0UL - 1L) << (FIXNUM_WIDTH-1)), fix->to_native());
708708

709709
Integer* max_plus1 = as<Integer>(two->pow(state, width));
710710

@@ -719,7 +719,7 @@ class TestBignum : public CxxTest::TestSuite, public VMTest {
719719
big = as<Integer>(neg_two->pow(state, Fixnum::from(FIXNUM_WIDTH+1)));
720720

721721
TS_ASSERT(kind_of<Bignum>(big));
722-
TS_ASSERT_EQUALS((long long)(0ULL - 1LL) << (FIXNUM_WIDTH+1), as<Bignum>(big)->to_long_long());
722+
TS_ASSERT_EQUALS((long long)((0ULL - 1LL) << (FIXNUM_WIDTH+1)), as<Bignum>(big)->to_long_long());
723723
}
724724

725725
void test_equal() {

0 commit comments

Comments
 (0)
Please sign in to comment.