We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 02e967d + 45fdcc2 commit 305a824Copy full SHA for 305a824
Source/Modules/swigmain.cxx
@@ -163,7 +163,7 @@ static void merge_options_files(int *argc, char ***argv) {
163
i = 1;
164
while (i < new_argc) {
165
if (new_argv[i] && new_argv[i][0] == '@' && (f = fopen(&new_argv[i][1], "r"))) {
166
- char c;
+ int ci;
167
char *b;
168
char *be = &buffer[BUFFER_SIZE];
169
int quote = 0;
@@ -174,7 +174,8 @@ static void merge_options_files(int *argc, char ***argv) {
174
insert = i;
175
b = buffer;
176
177
- while ((c = fgetc(f)) != EOF) {
+ while ((ci = fgetc(f)) != EOF) {
178
+ const char c = static_cast<char>(ci);
179
if (escape) {
180
if (b != be) {
181
*b = c;
0 commit comments