mirror of
https://github.com/MasterQ32/zig-args.git
synced 2024-09-16 20:24:03 +02:00
Useless line
This commit is contained in:
parent
2ad82cadb4
commit
97bf199a89
1 changed files with 2 additions and 2 deletions
4
args.zig
4
args.zig
|
@ -215,10 +215,10 @@ fn parseInt(comptime T: type, str: []const u8) !T {
|
|||
'p', 'P' => 5, //peta
|
||||
else => 0
|
||||
};
|
||||
if (pow != 0)
|
||||
|
||||
if (pow != 0) {
|
||||
buf.len -= 1;
|
||||
|
||||
if (pow != 0) {
|
||||
if (comptime std.math.maxInt(T) < 1024)
|
||||
return error.Overflow;
|
||||
var base: T = if (base1024) 1024 else 1000;
|
||||
|
|
Loading…
Reference in a new issue