Skip to content

Commit

Permalink
Merge pull request #3472 from WalterBright/buf512void
Browse files Browse the repository at this point in the history
std.format - void buffer init
  • Loading branch information
9rnsr committed Jul 4, 2015
2 parents df2bccb + 83c3adb commit 18d7a93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/format.d
Expand Up @@ -1768,7 +1768,7 @@ if (is(FloatingPointTypeOf!T) && !is(T == enum) && !hasToString!(T, Char))
sprintfSpec[i++] = fs.spec;
sprintfSpec[i] = 0;
//printf("format: '%s'; geeba: %g\n", sprintfSpec.ptr, val);
char[512] buf;
char[512] buf = void;

immutable n = ()@trusted{
return snprintf(buf.ptr, buf.length,
Expand Down

0 comments on commit 18d7a93

Please sign in to comment.