mirror of https://github.com/encounter/SDL.git
SDL_test_common.c: (unsigned char) cast to SDL_isdigit() parameter.
This commit is contained in:
parent
48d1ef8fad
commit
ced442cd38
|
@ -249,7 +249,7 @@ SDLTest_CommonArg(SDLTest_CommonState * state, int index)
|
||||||
}
|
}
|
||||||
if (SDL_strcasecmp(argv[index], "--windows") == 0) {
|
if (SDL_strcasecmp(argv[index], "--windows") == 0) {
|
||||||
++index;
|
++index;
|
||||||
if (!argv[index] || !SDL_isdigit(*argv[index])) {
|
if (!argv[index] || !SDL_isdigit((unsigned char) *argv[index])) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (!(state->window_flags & SDL_WINDOW_FULLSCREEN)) {
|
if (!(state->window_flags & SDL_WINDOW_FULLSCREEN)) {
|
||||||
|
@ -1331,8 +1331,7 @@ SDLTest_CommonInit(SDLTest_CommonState * state)
|
||||||
n = SDL_GetNumRenderDrivers();
|
n = SDL_GetNumRenderDrivers();
|
||||||
for (j = 0; j < n; ++j) {
|
for (j = 0; j < n; ++j) {
|
||||||
SDL_GetRenderDriverInfo(j, &info);
|
SDL_GetRenderDriverInfo(j, &info);
|
||||||
if (SDL_strcasecmp(info.name, state->renderdriver) ==
|
if (SDL_strcasecmp(info.name, state->renderdriver) == 0) {
|
||||||
0) {
|
|
||||||
m = j;
|
m = j;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue