Bug 1398513 - IsTokenSane: Remove an useless comparison: < 0 with an unsigned is always false r?arai
MozReview-Commit-ID: 42pjZIGID4L
--- a/js/src/frontend/TokenStream.cpp
+++ b/js/src/frontend/TokenStream.cpp
@@ -1172,17 +1172,17 @@ TokenStream::atomize(JSContext* cx, Char
}
#ifdef DEBUG
static bool
IsTokenSane(Token* tp)
{
// Nb: TOK_EOL should never be used in an actual Token; it should only be
// returned as a TokenKind from peekTokenSameLine().
- if (tp->type < 0 || tp->type >= TOK_LIMIT || tp->type == TOK_EOL)
+ if (tp->type >= TOK_LIMIT || tp->type == TOK_EOL)
return false;
if (tp->pos.end < tp->pos.begin)
return false;
return true;
}
#endif