-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It hides that the conversion may be lossy. This requires breaking ABI for the FFI interface, because the old behaviour would truncate the number of masters if a plugin had more than 255 (which is not valid in-game, but esplugin could be given an invalid plugin). This would ultimately cause memory management issues as the caller wouldn't be able to pass back the full size of the array when it came to freeing it. The remaining usages were all to do with comparing with usize values or indexing, and have been replaced by a function that will panic if the u32 -> usize conversion will fail but which optimises away on platforms where usize >= u32 (which is everywhere I expect this code to run).
- Loading branch information
Showing
5 changed files
with
26 additions
and
20 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
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
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