Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 3b12afbd3c7cd178f7adefdb2ebc8518bceca956..672cff7abba083187f8d83ee52a8baab486859e3 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -986,7 +986,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: |