Skip to content

cheats: fix parsing cheat codes on some platforms (like Windows)#1382

Merged
flyinghead merged 1 commit intoflyinghead:masterfrom
dakrk:cheat-fix
Feb 3, 2024
Merged

cheats: fix parsing cheat codes on some platforms (like Windows)#1382
flyinghead merged 1 commit intoflyinghead:masterfrom
dakrk:cheat-fix

Conversation

@dakrk
Copy link
Contributor

@dakrk dakrk commented Feb 3, 2024

using strtol here instead of strtoul when cheat code values are expected to be unsigned and are above 7fffffff breaks on platforms like Windows where long is 32-bit even on 64-bit platforms, capping out at 2147483647 and causing some (possibly quite a lot) of cheat codes to break.

using strtol here instead of strtoul when cheat code values are expected to be unsigned and are above 7fffffff breaks on platforms like Windows where long is 32-bit even on 64-bit platforms, capping out at 2147483647 and causing some cheat codes to break.
@flyinghead flyinghead merged commit d4fa3c4 into flyinghead:master Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants