lib,wcc,w6a,w6l: char-literals for remaining source magic decimals (Wave-1)
This commit is contained in:
@@ -129,7 +129,7 @@ let i64tos_buf: [65]u8 = [0...]; // 64 binary digits plus '-'
|
||||
export fn i64tos(i: i64, b: base) str = {
|
||||
if (i >= 0) { return u64tos(i: u64, b); };
|
||||
|
||||
i64tos_buf[0] = 45u8; // '-'
|
||||
i64tos_buf[0] = '-';
|
||||
// `(-i): u64`: for I64_MIN, -i wraps (two's complement) back to the
|
||||
// I64_MIN bit pattern; reinterpreting to u64 yields the true
|
||||
// magnitude 9223372036854775808. ref/hare/strconv/itos.ha:25. Probed
|
||||
|
||||
Reference in New Issue
Block a user