mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-24 10:11:21 -08:00
Fix getopt on systems where char is unsigned by default
This commit is contained in:
parent
746167f11a
commit
ec74a4fd4a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user