From 3cddb3c692acd3536a7cc8542a29f0cc3c0ac3d6 Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Fri, 30 Mar 2012 11:27:02 -0400 Subject: Fix remaining signedness errors We can change the data type for 'size' but we have to cast len to size_t for the comparisons with sizeof results. --- src/wayland-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wayland-server.c') diff --git a/src/wayland-server.c b/src/wayland-server.c index 8c7323d..a649d66 100644 --- a/src/wayland-server.c +++ b/src/wayland-server.c @@ -202,7 +202,7 @@ wl_client_connection_data(int fd, uint32_t mask, void *data) return 1; } - while (len >= sizeof p) { + while ((size_t) len >= sizeof p) { wl_connection_copy(connection, p, sizeof p); opcode = p[1] & 0xffff; size = p[1] >> 16; -- cgit v1.3.1