diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-07-13 19:01:37 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-07-13 19:01:37 -0400 |
commit | a1afddbf8843d01c93cad0735fce4417318a096e (patch) | |
tree | 462c2ef16087bb7ae1aa2dc8cee173631f1472b9 /std/io.toc | |
parent | a12739cd3f2ae5c78eca04cb3a1b30243db4f4fe (diff) |
started #for, also fixed some other stuff (including io.puti)
Diffstat (limited to 'std/io.toc')
-rw-r--r-- | std/io.toc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -285,7 +285,7 @@ fwritei ::= fn(use f: &File, x: int) err : FileError { *out = '-'; out += 1; // get the absolute value of x in a u64. this complicated stuff is needed because -INT_MIN doesn't fit in a 64-bit signed integer - x_unsigned = (x as u64) - 18446744073709551615 - 1; + x_unsigned = (18446744073709551615 - (x as u64)) + 1; } else { *out = '0'; out += 1; |