mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Fix ambiguity in const parsing
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include <ctype.h>
|
||||
|
||||
#include "asm/asm.h"
|
||||
#include "asm/constexpr.h"
|
||||
#include "asm/fstack.h"
|
||||
#include "asm/lexer.h"
|
||||
#include "asm/main.h"
|
||||
@@ -735,6 +736,7 @@ scanagain:
|
||||
|
||||
/* Longest match was a keyword or operator. */
|
||||
pLexBuffer += pLongestFixed->nNameLength;
|
||||
yylval.nConstValue = pLongestFixed->nToken;
|
||||
return pLongestFixed->nToken;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user