Skip to content

Commit

Permalink
libcore|TokenBuffer: Checking for token equality
Browse files Browse the repository at this point in the history
The sizes must match for an exact match.
  • Loading branch information
skyjake committed Nov 8, 2014
1 parent 95d2051 commit 0586c00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/libcore/src/scriptsys/tokenbuffer.cpp
Expand Up @@ -40,7 +40,7 @@ String const Token::SEMICOLON(";");

bool Token::equals(QChar const *str) const
{
if(size() < (int) qchar_strlen(str))
if(size() != (int) qchar_strlen(str))
{
// No possibility of a match.
return false;
Expand Down

0 comments on commit 0586c00

Please sign in to comment.