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