File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3442,12 +3442,12 @@ var temp_buffer: ?std.ArrayList(u8) = null;
34423442
34433443pub 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}
34483448pub 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//--------------------------------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments