Fixed warning C4244: '=': conversion from 'double' to 'float', possible loss of data

This commit is contained in:
Sam Lantinga
2024-05-30 07:44:00 -07:00
parent 690d73f5c9
commit 4954690828

View File

@@ -450,8 +450,8 @@ int SDLTest_CommonArg(SDLTest_CommonState *state, int index)
} else {
max_aspect = min_aspect;
}
state->window_min_aspect = SDL_atof(min_aspect);
state->window_max_aspect = SDL_atof(max_aspect);
state->window_min_aspect = (float)SDL_atof(min_aspect);
state->window_max_aspect = (float)SDL_atof(max_aspect);
return 2;
}
if (SDL_strcasecmp(argv[index], "--logical") == 0) {