aboutsummaryrefslogtreecommitdiff
path: root/src/c8asm
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-02-14 00:42:35 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-02-14 00:42:35 +0100
commit4a039b51bba5ee384e921d4407b976f996546fce (patch)
tree160e88906bf350c582d38199453aeee2df284068 /src/c8asm
parent1bbcb4597e873416223a01a03f7c7e3831dfa6bc (diff)
Check for T_IDENT, not T_STRING
Diffstat (limited to 'src/c8asm')
-rw-r--r--src/c8asm/parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c8asm/parser.c b/src/c8asm/parser.c
index d6e79f9..86f4ca5 100644
--- a/src/c8asm/parser.c
+++ b/src/c8asm/parser.c
@@ -124,7 +124,7 @@ parseaddr(struct token tok)
{
if (tok.kind == T_NUMBER)
return (struct raw_addr){.val = parsenum(tok, NS_ADDR)};
- if (tok.kind == T_STRING) {
+ if (tok.kind == T_IDENT) {
if (regtype(tok.sv) != RT_NONE)
die_with_off(tok.sv.p, E_BADLABEL, U8_PRI_ARGS(tok.sv));
return (struct raw_addr){.label = true, .sv = tok.sv};