Core: Fix casting binding
This commit is contained in:
@@ -23,11 +23,12 @@ IntegerToString :: (value: int, result: *U8, base: int): *U8
|
||||
ptr1 := result
|
||||
tmp_char: U8
|
||||
tmp_value: int
|
||||
str := "zyxwvutsrqponmlkjihgfedcba9876543210123456789abcdefghijklmnopqrstuvwxyz"
|
||||
|
||||
for value != 0
|
||||
tmp_value = value
|
||||
value /= base
|
||||
*ptr++ = "zyxwvutsrqponmlkjihgfedcba9876543210123456789abcdefghijklmnopqrstuvwxyz"[35 + (tmp_value - value * base)]
|
||||
*ptr++ = str[35 + (tmp_value - value * base)]
|
||||
|
||||
// Apply negative sign
|
||||
if tmp_value < 0
|
||||
|
||||
Reference in New Issue
Block a user