utoa: call clampu instead of clamp (since utoa=>unsigned to ascii)
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
%include "src/constants.asm"
|
%include "src/constants.asm"
|
||||||
|
|
||||||
extern clamp
|
extern clamp
|
||||||
|
extern clampu
|
||||||
|
|
||||||
section .bss
|
section .bss
|
||||||
cnvtBuff resb 67
|
cnvtBuff resb 67
|
||||||
@@ -368,7 +369,7 @@ utoa:
|
|||||||
mov rdi, rdx
|
mov rdi, rdx
|
||||||
xor rsi, rsi
|
xor rsi, rsi
|
||||||
mov rdx, 64
|
mov rdx, 64
|
||||||
call clamp
|
call clampu
|
||||||
mov r14, rax
|
mov r14, rax
|
||||||
; Store padding character
|
; Store padding character
|
||||||
mov rdi, ' '
|
mov rdi, ' '
|
||||||
|
Reference in New Issue
Block a user