Fix issue with default unsigned char #1
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
miles/xar!1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For some reason on my distro, char defaults to unsigned,
which breaks getopts if it is returned to char.
I fixed it in the code by changing char to int; but I still slightly worry that
there might be an issue somewhere else.
Anyway changing char to int fixes this and is more "correct" as getopt returns int anyway.
Aah, it's ARM thing. Yeah getopts fails on ARM because of that.
Related (same issue):
https://github.com/BC-SECURITY/bomutils/pull/2
Other fix is to use
CFLAGS="-fsigned-char"with configure... but that's probably worse.