Skip to content

Commit e5d64a1

Browse files
committed
Remove premature include of cstdlib
It's not needed until we use the `rand()` function. Resolves #687
1 parent 51eadff commit e5d64a1

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Change Log -- Ray Tracing in One Weekend
44
# v3.2.1 (in progress)
55

66
### _In One Weekend_
7+
- Delete: remove premature `cstdlib` include; not needed until we use `rand()` (#687)
78
- Fix: replace old anti-alias result image with before-and-after image (#679)
89
- Fix: undefined `vup` variable in camera definition (#686)
910

books/RayTracingInOneWeekend.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,6 @@
11831183
#define RTWEEKEND_H
11841184

11851185
#include <cmath>
1186-
#include <cstdlib>
11871186
#include <limits>
11881187
#include <memory>
11891188

0 commit comments

Comments
 (0)