Skip to content

Commit 74c7bb5

Browse files
committed
remove pointless casts.
1 parent 32e2025 commit 74c7bb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/IMG_libpng.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -922,8 +922,8 @@ static SDL_Surface *decompress_png_frame_data(DecompressionContext* context, png
922922
if (data_size < 0) {
923923
goto error;
924924
}
925-
if ((Uint64)data_size >= (Uint64)SDL_MAX_SINT32) {
926-
SDL_SetError("data size >= SDL_MAX_SINT32");
925+
if (data_size >= SDL_MAX_SINT32) {
926+
SDL_SetError("data size >= INT32_MAX");
927927
goto error;
928928
}
929929
void *buffer = NULL;

0 commit comments

Comments
 (0)