Skip to content

Commit

Permalink
Fix the while loop in src/analyser/encoding.zig:decode
Browse files Browse the repository at this point in the history
  • Loading branch information
llogick committed Nov 16, 2023
1 parent 848c8b4 commit d811e00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/analyser/encoding.zig
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ pub fn decode(extra: *[]const u8, comptime T: type) T {
},
.Array => |info| blk: {
var array: T = undefined;
const i: usize = 0;
while (i < info.len) {
var i: usize = 0;
while (i < info.len) : (i += 1) {
array[i] = decode(extra, info.child);
}
break :blk array;
Expand Down

0 comments on commit d811e00

Please sign in to comment.