Skip to content
Snippets Groups Projects
Commit 1f29c084 authored by Sylvestre Ledru's avatar Sylvestre Ledru
Browse files

Bug 1398513 - IsTokenSane: Remove an useless comparison: < 0 with an unsigned...

Bug 1398513 - IsTokenSane: Remove an useless comparison: < 0 with an unsigned is always false r=arai

MozReview-Commit-ID: 42pjZIGID4L

--HG--
extra : rebase_source : ffe64dab7afdd1a63c4d0997097e7c8db0a71aea
parent 5127c303
No related branches found
No related tags found
No related merge requests found
......@@ -1177,7 +1177,7 @@ 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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment