1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-02-15 19:58:20 -06:00

Merge pull request from FearlessTobi/port-4697

Port : "Fix getopt on systems where char is unsigned by default"
This commit is contained in:
bunnei 2019-03-19 23:27:17 -04:00 committed by GitHub
commit adf07cbe17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -114,9 +114,9 @@ int main(int argc, char** argv) {
};
while (optind < argc) {
char arg = getopt_long(argc, argv, "g:fhvp::", long_options, &option_index);
int arg = getopt_long(argc, argv, "g:fhvp::", long_options, &option_index);
if (arg != -1) {
switch (arg) {
switch (static_cast<char>(arg)) {
case 'g':
errno = 0;
gdb_port = strtoul(optarg, &endarg, 0);