forked from shingarov/SmallRSP
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
Endian >> ifBig:ifLittle:
more consistently
This fixes potential subtle bugs, like the one in `#read32At:` which did processorDescription endian == #little ifTrue: [ answer := answer byteSwap32 ]. This naturally stopped working when ArchC moved towards use of `Endian`, causing silent heap corruption since no system was considered as LE. Using `#ifBig:ifLittle:` also protect us against mixed-endian systems should we ever come across them.
- Loading branch information
Showing
2 changed files
with
11 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters