Skip to content

Commit 23327a4

Browse files
committed
Change text from qsort to std::sort
Resolves #490
1 parent 55abc5f commit 23327a4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Change Log -- Ray Tracing in One Weekend
1414
- Fix: Corrected for-loop indices (they differed from the version in book 1) in `random_scene()`.
1515
- Fix: Introduce "Texture Coordinates for Spheres" in Chapter 4 to support (u,v) coordinates in
1616
`hit_record` (#496)
17+
- Fix: Small correction: we now use `std::sort` instead of `qsort` (#490)
1718
- Change: Refactored `random_scene()`. More named intermediate values, sync'ed with version in
1819
_In One Weekend_ and with source. Added highlight for update from last version in book 1. (#489)
1920
- Change: The C++ `<random>` version of `random_double()` no longer depends on `<functional>`

books/RayTracingTheNextWeek.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@
810810
list along one axis. I’ll go for simplicity:
811811

812812
1. randomly choose an axis
813-
2. sort the primitives using library qsort
813+
2. sort the primitives (`using std::sort`)
814814
3. put half in each subtree
815815

816816
</div>

0 commit comments

Comments
 (0)