testime.c: add valid cast, since the variable as been tested non negative before

This commit is contained in:
Sylvain 2022-12-15 14:22:11 +01:00
parent 48955cce0e
commit ff3f4236f2
No known key found for this signature in database
GPG Key ID: 5F87E02E5BC0939E
1 changed files with 2 additions and 1 deletions

View File

@ -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");
return -1;
}