mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 03:18:13 +00:00
testime.c: add valid cast, since the variable as been tested non negative before
This commit is contained in:
@@ -196,7 +196,8 @@ static int unifont_init(const char *fontname)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (bytesRead < (33 - bytesOverread)) {
|
|
||||||
|
if ((size_t)bytesRead < (33 - bytesOverread)) {
|
||||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "unifont: Unexpected end of hex file.\n");
|
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "unifont: Unexpected end of hex file.\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user