authorgravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2023-06-12 03:15:57-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-06-12 12:07:38-07:00
log028f2ed30f3318fbe1d2274962d7cda111c695b6
treef301dd0bbbd77712631897d4407db7d36219a1cd
parentd37ebfcf231c68a0430840c4fbe649dd0076ae1e

InternPool: fix one more compile error on 32-bit targets


1 files changed, 1 insertions(+), 1 deletions(-)

src/InternPool.zig+1-1
......@@ -5294,7 +5294,7 @@ pub fn getOrPutStringFmt(
52945294 args: anytype,
52955295) Allocator.Error!NullTerminatedString {
52965296 // ensure that references to string_bytes in args do not get invalidated
5297 const len = std.fmt.count(format, args) + 1;
5297 const len = @intCast(usize, std.fmt.count(format, args) + 1);
52985298 try ip.string_bytes.ensureUnusedCapacity(gpa, len);
52995299 ip.string_bytes.writer(undefined).print(format, args) catch unreachable;
53005300 ip.string_bytes.appendAssumeCapacity(0);