Skip to content

Commit f82bc1e

Browse files
Partially revert "Fix bug in code example"
This reverts commit 8c3e5ea.
1 parent 71c6916 commit f82bc1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ import core.stdc.stdlib;
640640
void livingDangerously()
641641
{
642642
// Access to C's malloc and free primitives
643-
auto buf = malloc(float.sizeof * 1024 * 1024);
643+
auto buf = malloc(1024 * 1024);
644644
// free automatically upon scope exit
645645
scope(exit) free(buf);
646646
// Interprets memory as an array of floats

0 commit comments

Comments
 (0)