Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 3be500814533e45ee0b6273f45577438fa35019f..9714b1da34f2df94a357b3b1d865e5848f4bd15b 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -1360,7 +1360,7 @@ THREADED_TEST(BigSmiInteger) { |
int32_t value = i::Smi::kMaxValue; |
// We cannot add one to a Smi::kMaxValue without wrapping. |
- if (i::kSmiValueSize < 32) { |
+ if (i::SmiValuesAre31Bits()) { |
CHECK(i::Smi::IsValid(value)); |
CHECK(!i::Smi::IsValid(value + 1)); |
@@ -1379,7 +1379,7 @@ THREADED_TEST(BigInteger) { |
v8::Isolate* isolate = v8::Isolate::GetCurrent(); |
// We cannot add one to a Smi::kMaxValue without wrapping. |
- if (i::kSmiValueSize < 32) { |
+ if (i::SmiValuesAre31Bits()) { |
// The casts allow this to compile, even if Smi::kMaxValue is 2^31-1. |
// The code will not be run in that case, due to the "if" guard. |
int32_t value = |