From a4dca0f21545f17709e84710421b4a6adac4d11f Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 13 Feb 2024 14:57:25 +0100 Subject: Use U8MOV() --- src/c8asm/lexer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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++; -- cgit v1.2.3