| author | |
| committer | |
| log | 8e69ab8a31809f1e7e6fe8de67faa36b63219270 |
| tree | 2d8161c39b71b49963ee47c4cef6a3ba54f5c315 |
| parent | 7e4c386f6ab5546898b94d80f54e88d45dc6c7b9 |
1 files changed, 1 insertions(+), 1 deletions(-)
lib/c/stdlib.zig+1-1| ... | ... | @@ -128,7 +128,7 @@ fn strtoumax(noalias str: [*:0]const c_char, noalias str_end: ?*[*:0]const c_cha |
| 128 | 128 | fn stringToInteger(comptime T: type, noalias buf: [*:0]const u8, noalias maybe_end: ?*[*:0]const u8, base: c_int) T { |
| 129 | 129 | comptime assert(std.math.isPowerOfTwo(@bitSizeOf(T))); |
| 130 | 130 | |
| 131 | if (base == 1 or base > 36) { | |
| 131 | if (base < 0 or base == 1 or base > 36) { | |
| 132 | 132 | if (maybe_end) |end| { |
| 133 | 133 | end.* = buf; |
| 134 | 134 | } |