aboutsummaryrefslogtreecommitdiff
path: root/src/InternPool.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2023-06-12 03:15:57 -0400
committerAndrew Kelley <andrew@ziglang.org>2023-06-12 12:07:38 -0700
commit028f2ed30f3318fbe1d2274962d7cda111c695b6 (patch)
treef301dd0bbbd77712631897d4407db7d36219a1cd /src/InternPool.zig
parentd37ebfcf231c68a0430840c4fbe649dd0076ae1e (diff)
downloadzig-028f2ed30f3318fbe1d2274962d7cda111c695b6.tar.gz
zig-028f2ed30f3318fbe1d2274962d7cda111c695b6.zip
InternPool: fix one more compile error on 32-bit targets
Diffstat (limited to 'src/InternPool.zig')
-rw-r--r--src/InternPool.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/InternPool.zig b/src/InternPool.zig
index d5cf2d3fbf..c208fcf18a 100644
--- a/src/InternPool.zig
+++ b/src/InternPool.zig
@@ -5294,7 +5294,7 @@ pub fn getOrPutStringFmt(
args: anytype,
) Allocator.Error!NullTerminatedString {
// ensure that references to string_bytes in args do not get invalidated
- const len = std.fmt.count(format, args) + 1;
+ const len = @intCast(usize, std.fmt.count(format, args) + 1);
try ip.string_bytes.ensureUnusedCapacity(gpa, len);
ip.string_bytes.writer(undefined).print(format, args) catch unreachable;
ip.string_bytes.appendAssumeCapacity(0);