diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-02-13 14:57:25 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-02-13 14:57:25 +0100 |
commit | a4dca0f21545f17709e84710421b4a6adac4d11f (patch) | |
tree | 64dd06989aa08d98627e13bf76898cc2083c0a5c | |
parent | 212ed58b037f46775cb7cbd46cf07b9b6afe357d (diff) |
Use U8MOV()
-rw-r--r-- | src/c8asm/lexer.c | 3 |
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++; |