-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`usize` is made exactly for this (e.g.: the size of a buffer), and signatures are a bit more idiomatic. These changes also try to cast the u32 to a usize as soon as we read it, and will panic if there is an issue (whereas using `as usize` may result in silent conversion errors on uncommon architectures.
- Loading branch information
Hugo Osvaldo Barrera
committed
Jun 1, 2022
1 parent
bd10966
commit dda48b6
Showing
2 changed files
with
13 additions
and
12 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