aboutsummaryrefslogtreecommitdiff
path: root/lib/std/pdb.zig
diff options
context:
space:
mode:
authorLoris Cro <kappaloris@gmail.com>2023-06-18 09:06:40 +0200
committerGitHub <noreply@github.com>2023-06-18 09:06:40 +0200
commit216ef10dc471e4db60a30208be178d6c59efeaaf (patch)
tree8c239dab283ae9cb3b7fe099bae240bcc53f894e /lib/std/pdb.zig
parent0fc1d396495c1ab482197021dedac8bea3f9401c (diff)
parent729a051e9e38674233190aea23c0ac8c134f2d67 (diff)
downloadzig-216ef10dc471e4db60a30208be178d6c59efeaaf.tar.gz
zig-216ef10dc471e4db60a30208be178d6c59efeaaf.zip
Merge branch 'master' into autodoc-searchkey
Diffstat (limited to 'lib/std/pdb.zig')
-rw-r--r--lib/std/pdb.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/pdb.zig b/lib/std/pdb.zig
index fdd162a34f..180507ba71 100644
--- a/lib/std/pdb.zig
+++ b/lib/std/pdb.zig
@@ -912,7 +912,7 @@ const Msf = struct {
const stream_sizes = try allocator.alloc(u32, stream_count);
defer allocator.free(stream_sizes);
- // Microsoft's implementation uses @as(u32, -1) for inexistant streams.
+ // Microsoft's implementation uses @as(u32, -1) for inexistent streams.
// These streams are not used, but still participate in the file
// and must be taken into account when resolving stream indices.
const Nil = 0xFFFFFFFF;
@@ -1049,7 +1049,7 @@ const MsfStream = struct {
var size: usize = 0;
var rem_buffer = buffer;
while (size < buffer.len) {
- const size_to_read = math.min(self.block_size - offset, rem_buffer.len);
+ const size_to_read = @min(self.block_size - offset, rem_buffer.len);
size += try in.read(rem_buffer[0..size_to_read]);
rem_buffer = buffer[size..];
offset += size_to_read;