fall-through error in is_numeric, is_id_* wrong register

This commit is contained in:
janis 2025-10-28 16:47:54 +01:00
parent 1886231dcd
commit e8f6cfb44a
Signed by: janis
SSH key fingerprint: SHA256:bB1qbbqmDXZNT0KKD5c2Dfjg53JGhj7B3CFcLIzSqq8

View file

@ -354,7 +354,7 @@ is_numeric:
cmp dil, '0'
jb .not_numeric
cmp dil, '9'
jbe .is_numeric_ret
ja .not_numeric
.is_numeric_ret:
mov rax, 1
ret
@ -370,9 +370,9 @@ is_id_continue:
call is_numeric
test rax, rax
jne .is_id_continue_ret
cmp cl, '_'
cmp dil, '_'
je .is_id_continue_ret
cmp cl, '-'
cmp dil, '-'
je .is_id_continue_ret
xor rax, rax
ret
@ -385,7 +385,7 @@ is_id_start:
call is_alpha
test rax, rax
jne .is_ret
cmp cl, '_'
cmp dil, '_'
je .is_ret
xor rax, rax
ret