File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ double get_double(void)
131
131
}
132
132
133
133
// return a double if only a double was provided
134
- if (strlen (line ) > 0 && !isspace (line [0 ]))
134
+ if (strlen (line ) > 0 && !isspace (( unsigned char ) line [0 ]))
135
135
{
136
136
char * tail ;
137
137
errno = 0 ;
@@ -169,7 +169,7 @@ float get_float(void)
169
169
}
170
170
171
171
// return a float if only a float was provided
172
- if (strlen (line ) > 0 && !isspace (line [0 ]))
172
+ if (strlen (line ) > 0 && !isspace (( unsigned char ) line [0 ]))
173
173
{
174
174
char * tail ;
175
175
errno = 0 ;
@@ -207,7 +207,7 @@ int get_int(void)
207
207
}
208
208
209
209
// return an int if only an int (in range) was provided
210
- if (strlen (line ) > 0 && !isspace (line [0 ]))
210
+ if (strlen (line ) > 0 && !isspace (( unsigned char ) line [0 ]))
211
211
{
212
212
char * tail ;
213
213
errno = 0 ;
@@ -241,7 +241,7 @@ long long get_long_long(void)
241
241
}
242
242
243
243
// return a long long if only a long long (in range) was provided
244
- if (strlen (line ) > 0 && !isspace (line [0 ]))
244
+ if (strlen (line ) > 0 && !isspace (( unsigned char ) line [0 ]))
245
245
{
246
246
char * tail ;
247
247
errno = 0 ;
You can’t perform that action at this time.
0 commit comments