diff options
Diffstat (limited to 'deps/v8/src/token.h')
-rw-r--r-- | deps/v8/src/token.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/v8/src/token.h b/deps/v8/src/token.h index 2f5ca1b5fc..fb890d2342 100644 --- a/deps/v8/src/token.h +++ b/deps/v8/src/token.h @@ -217,7 +217,7 @@ class Token { // Returns a string corresponding to the C++ token name // (e.g. "LT" for the token LT). static const char* Name(Value tok) { - ASSERT(0 <= tok && tok < NUM_TOKENS); + ASSERT(tok < NUM_TOKENS); // tok is unsigned return name_[tok]; } @@ -292,14 +292,14 @@ class Token { // (.e., "<" for the token LT) or NULL if the token doesn't // have a (unique) string (e.g. an IDENTIFIER). static const char* String(Value tok) { - ASSERT(0 <= tok && tok < NUM_TOKENS); + ASSERT(tok < NUM_TOKENS); // tok is unsigned. return string_[tok]; } // Returns the precedence > 0 for binary and compare // operators; returns 0 otherwise. static int Precedence(Value tok) { - ASSERT(0 <= tok && tok < NUM_TOKENS); + ASSERT(tok < NUM_TOKENS); // tok is unsigned. return precedence_[tok]; } |