aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/c8asm/lexer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/c8asm/lexer.c b/src/c8asm/lexer.c
index effc32e..16a9d5e 100644
--- a/src/c8asm/lexer.c
+++ b/src/c8asm/lexer.c
@@ -90,8 +90,7 @@ lexline(struct tokens *toks, struct u8view *sv)
if (ch == '0') {
w = u8next(&ch, &sv->p, &sv->len);
if (!w || rprop_is_pat_ws(ch)) {
- sv->p -= w;
- sv->len += w;
+ U8MOV(sv, -w);
goto out;
}
tok.sv.len++;