diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2023-11-10 05:27:17 +0000 |
|---|---|---|
| committer | mlugg <mlugg@mlugg.co.uk> | 2023-11-19 09:55:07 +0000 |
| commit | 51595d6b75d8ac2443a2c142c71f2a617c12fe96 (patch) | |
| tree | 0e3045793aa36cc8569181cc790d270c4f056806 /lib/std/pdb.zig | |
| parent | baabc6013ea4f44082e69375214e76b5d803c5cb (diff) | |
| download | zig-51595d6b75d8ac2443a2c142c71f2a617c12fe96.tar.gz zig-51595d6b75d8ac2443a2c142c71f2a617c12fe96.zip | |
lib: correct unnecessary uses of 'var'
Diffstat (limited to 'lib/std/pdb.zig')
| -rw-r--r-- | lib/std/pdb.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/pdb.zig b/lib/std/pdb.zig index acc8aa1ec7..d0623145a0 100644 --- a/lib/std/pdb.zig +++ b/lib/std/pdb.zig @@ -897,7 +897,7 @@ const Msf = struct { return error.UnhandledBigDirectoryStream; // cf. BlockMapAddr comment. try file.seekTo(superblock.BlockSize * superblock.BlockMapAddr); - var dir_blocks = try allocator.alloc(u32, dir_block_count); + const dir_blocks = try allocator.alloc(u32, dir_block_count); for (dir_blocks) |*b| { b.* = try in.readInt(u32, .little); } |
