Skip to content

Commit

Permalink
std::io: use @noinit 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 25, 2023
1 parent 208bf6d commit bfe358e
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 bfe358e

Please sign in to comment.