Skip to content

Commit c32998c

Browse files
committed
fix -Wsign-compare in windows builds.
1 parent dfb73a7 commit c32998c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SDL_net.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static int WindowsPoll(struct pollfd *fds, unsigned int nfds, int timeout)
9696
#define ALLOC_FDSET(typ) { \
9797
if (!failed && (n##typ##fds > 0)) { \
9898
const int len = sizeof (Uint32) + (n##typ##fds * sizeof (SOCKET)); \
99-
if (len < sizeof (stackbuf_##typ)) { \
99+
if (len < (int) sizeof (stackbuf_##typ)) { \
100100
typ##fds = (WindowsPoll_fd_set *) stackbuf_##typ; \
101101
} else { \
102102
typ##fds = (WindowsPoll_fd_set *) SDL_malloc(len); \

0 commit comments

Comments
 (0)