Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change return of S_get_category_index_nowarn
This is in preparation for it being called from more than a single place. Instead of returning -1 on error, it returns an out-of-bounds value 1 greater than the largest legal value. There is a placeholder entry in all the arrays this can be indexed into for that illegal value. This means if it somehow gets used, we wont get a segfault, like we would on the -1, but instead a value that will show up as wrong, but not crash.
- Loading branch information
1 parent
b1f3d4a
commit 058b82e
Showing
3 changed files
with
7 additions
and
7 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.