Skip to content

Swap char for int to fix arg parsing on systems where char is unsigned#45

Merged
uyjulian merged 1 commit into
ps2dev:masterfrom
sarahcrowle:master
Jan 10, 2026
Merged

Swap char for int to fix arg parsing on systems where char is unsigned#45
uyjulian merged 1 commit into
ps2dev:masterfrom
sarahcrowle:master

Conversation

@sarahcrowle
Copy link
Copy Markdown

@sarahcrowle sarahcrowle commented Jan 10, 2026

On certain systems (notably ARM64?) char might not necessarily be signed. This causes issues when ps2-packer tries to read arguments as it can't check for EOF properly.

This PR changes the data type of the variable used to store the value returned from getopt to an int, which fixes argument parsing on these systems.

Fixes #43

@uyjulian
Copy link
Copy Markdown
Member

LGTM thanks!

@uyjulian uyjulian merged commit 9afec04 into ps2dev:master Jan 10, 2026
2 checks passed
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.

Arm64 (Raspberry Pi 5) error: Unknown option ?

2 participants