summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bunnei2019-03-19 23:27:17 -0400
committerGravatar GitHub2019-03-19 23:27:17 -0400
commitadf07cbe17c49bc4384926f83f2de9f15e616f1c (patch)
treee2e44f58a5b9200fadfcdf134ddbff6d66e4e242
parentMerge pull request #2258 from lioncash/am (diff)
parentFix getopt on systems where char is unsigned by default (diff)
downloadyuzu-adf07cbe17c49bc4384926f83f2de9f15e616f1c.tar.gz
yuzu-adf07cbe17c49bc4384926f83f2de9f15e616f1c.tar.xz
yuzu-adf07cbe17c49bc4384926f83f2de9f15e616f1c.zip
Merge pull request #2263 from FearlessTobi/port-4697
Port citra-emu/citra#4697: "Fix getopt on systems where char is unsigned by default"
-rw-r--r--src/yuzu_cmd/yuzu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp
index c6c66a787..245f25847 100644
--- a/src/yuzu_cmd/yuzu.cpp
+++ b/src/yuzu_cmd/yuzu.cpp
@@ -114,9 +114,9 @@ int main(int argc, char** argv) {
114 }; 114 };
115 115
116 while (optind < argc) { 116 while (optind < argc) {
117 char arg = getopt_long(argc, argv, "g:fhvp::", long_options, &option_index); 117 int arg = getopt_long(argc, argv, "g:fhvp::", long_options, &option_index);
118 if (arg != -1) { 118 if (arg != -1) {
119 switch (arg) { 119 switch (static_cast<char>(arg)) {
120 case 'g': 120 case 'g':
121 errno = 0; 121 errno = 0;
122 gdb_port = strtoul(optarg, &endarg, 0); 122 gdb_port = strtoul(optarg, &endarg, 0);