Skip to content

Commit

Permalink
Remove premature include of cstdlib
Browse files Browse the repository at this point in the history
It's not needed until we use the `rand()` function.

Resolves #687
  • Loading branch information
hollasch committed Aug 19, 2020
1 parent 51eadff commit e5d64a1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Change Log -- Ray Tracing in One Weekend
# v3.2.1 (in progress)

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

Expand Down
1 change: 0 additions & 1 deletion books/RayTracingInOneWeekend.html
Original file line number Diff line number Diff line change
Expand Up @@ -1183,7 +1183,6 @@
#define RTWEEKEND_H

#include <cmath>
#include <cstdlib>
#include <limits>
#include <memory>

Expand Down

0 comments on commit e5d64a1

Please sign in to comment.