Skip to content
Snippets Groups Projects
Unverified Commit adf07cbe authored by bunnei's avatar bunnei Committed by GitHub
Browse files

Merge pull request #2263 from FearlessTobi/port-4697

Port citra-emu/citra#4697: "Fix getopt on systems where char is unsigned by default"
parents 746167f1 ec74a4fd
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment