diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-02-18 09:02:57 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-02-18 19:17:21 -0700 |
| commit | aeaef8c0ffadab4145fd002f2edd87a6db66ebd1 (patch) | |
| tree | e4c76c76173e5e72bc1947e1886662c4c6b2ba3c /lib/std/fmt/parse_float | |
| parent | f0530385b57218ef323747bdb7438330a07d25cc (diff) | |
| download | zig-aeaef8c0ffadab4145fd002f2edd87a6db66ebd1.tar.gz zig-aeaef8c0ffadab4145fd002f2edd87a6db66ebd1.zip | |
update std lib and compiler sources to new for loop syntax
Diffstat (limited to 'lib/std/fmt/parse_float')
| -rw-r--r-- | lib/std/fmt/parse_float/decimal.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/fmt/parse_float/decimal.zig b/lib/std/fmt/parse_float/decimal.zig index 1a4c7ebb0d..9dbe7095ac 100644 --- a/lib/std/fmt/parse_float/decimal.zig +++ b/lib/std/fmt/parse_float/decimal.zig @@ -475,7 +475,7 @@ pub fn Decimal(comptime T: type) type { const x = pow2_to_pow5_table[shift]; // Compare leading digits of current to check if lexicographically less than cutoff. - for (x.cutoff) |p5, i| { + for (x.cutoff, 0..) |p5, i| { if (i >= self.num_digits) { return x.delta - 1; } else if (self.digits[i] == p5 - '0') { // digits are stored as integers |
