Skip to content

Commit e46c576

Browse files
committed
Initial emscripten commit
1 parent 0288062 commit e46c576

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gui.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3442,12 +3442,12 @@ var temp_buffer: ?std.ArrayList(u8) = null;
34423442

34433443
pub fn format(comptime fmt: []const u8, args: anytype) []const u8 {
34443444
const len = std.fmt.count(fmt, args);
3445-
if (len > temp_buffer.?.items.len) temp_buffer.?.resize(len + 64) catch unreachable;
3445+
if (len > temp_buffer.?.items.len) temp_buffer.?.resize(@intCast(len + 64)) catch unreachable;
34463446
return std.fmt.bufPrint(temp_buffer.?.items, fmt, args) catch unreachable;
34473447
}
34483448
pub fn formatZ(comptime fmt: []const u8, args: anytype) [:0]const u8 {
34493449
const len = std.fmt.count(fmt ++ "\x00", args);
3450-
if (len > temp_buffer.?.items.len) temp_buffer.?.resize(len + 64) catch unreachable;
3450+
if (len > temp_buffer.?.items.len) temp_buffer.?.resize(@intCast(len + 64)) catch unreachable;
34513451
return std.fmt.bufPrintZ(temp_buffer.?.items, fmt, args) catch unreachable;
34523452
}
34533453
//--------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)