diff options
| author | gingerBill <bill@gingerbill.org> | 2018-11-17 09:45:52 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-11-17 09:45:52 +0000 |
| commit | d035d48c8e372ca0fded91c6160171de5ab64bf3 (patch) | |
| tree | 3a0c02147abccf7b6dbcf799c421a1f9b8e603ca | |
| parent | b55b1ffe14bc4a7459cd9b9bdb8b9b0c8f7f8091 (diff) | |
Fix issue #280
| -rw-r--r-- | core/strconv/strconv.odin | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/strconv/strconv.odin b/core/strconv/strconv.odin index 760a45ba7..0526a65ba 100644 --- a/core/strconv/strconv.odin +++ b/core/strconv/strconv.odin @@ -439,19 +439,19 @@ is_integer_negative :: proc(u: u64, is_signed: bool, bit_size: int) -> (unsigned case 8: i := i8(u); neg = i < 0; - u = u64(abs(i)); + u = u64(abs(i64(i))); case 16: i := i16(u); neg = i < 0; - u = u64(abs(i)); + u = u64(abs(i64(i))); case 32: i := i32(u); neg = i < 0; - u = u64(abs(i)); + u = u64(abs(i64(i))); case 64: i := i64(u); neg = i < 0; - u = u64(abs(i)); + u = u64(abs(i64(i))); case: panic("is_integer_negative: Unknown integer size"); } |