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 @@ -137,7 +137,7 @@ double get_double(string prompt)
137
137
}
138
138
139
139
// return a double if only a double was provided
140
- if (strlen (line ) > 0 && !isspace (line [0 ]))
140
+ if (strlen (line ) > 0 && !isspace (( unsigned char ) line [0 ]))
141
141
{
142
142
char * tail ;
143
143
errno = 0 ;
@@ -183,7 +183,7 @@ float get_float(string prompt)
183
183
}
184
184
185
185
// return a float if only a float was provided
186
- if (strlen (line ) > 0 && !isspace (line [0 ]))
186
+ if (strlen (line ) > 0 && !isspace (( unsigned char ) line [0 ]))
187
187
{
188
188
char * tail ;
189
189
errno = 0 ;
@@ -229,7 +229,7 @@ int get_int(string prompt)
229
229
}
230
230
231
231
// return an int if only an int (in range) was provided
232
- if (strlen (line ) > 0 && !isspace (line [0 ]))
232
+ if (strlen (line ) > 0 && !isspace (( unsigned char ) line [0 ]))
233
233
{
234
234
char * tail ;
235
235
errno = 0 ;
@@ -271,7 +271,7 @@ long long get_long_long(string prompt)
271
271
}
272
272
273
273
// return a long long if only a long long (in range) was provided
274
- if (strlen (line ) > 0 && !isspace (line [0 ]))
274
+ if (strlen (line ) > 0 && !isspace (( unsigned char ) line [0 ]))
275
275
{
276
276
char * tail ;
277
277
errno = 0 ;
You can’t perform that action at this time.
0 commit comments