Skip to content

Commit

Permalink
std::io: use @init in Stream.*varint
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Curto <[email protected]>
  • Loading branch information
pierrec committed Sep 22, 2023
1 parent d414fcf commit e3edfe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/std/io/stream.c3
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ macro usz! Stream.write_varint(&self, x)
{
var $Type = $typeof(x);
const MAX = MAX_VARS[$Type.sizeof];
char[MAX] buffer;
char[MAX] buffer @noinit;
usz i;
while (x >= 0x80)
{
Expand Down

0 comments on commit e3edfe1

Please sign in to comment.