mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 13:30:45 +00:00
InternPool: fix one more compile error on 32-bit targets
This commit is contained in:
parent
d37ebfcf23
commit
028f2ed30f
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user