Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 8b994eaed56872d74ada04d7870610c4a49e795a..1dfcb077fac72abbcf2bea3aab5c12c30bda72d8 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -1012,7 +1012,8 @@ class Smi: public Object { |
void SmiVerify(); |
#endif |
- static const int kMinValue = (-1U << (kSmiValueSize - 1)); |
+ static const int kMinValue = |
+ (static_cast<unsigned int>(-1)) << (kSmiValueSize - 1); |
static const int kMaxValue = -(kMinValue + 1); |
private: |