diff options
| author | Kristian Høgsberg <krh@bitplanet.net> | 2012-03-30 11:27:02 -0400 |
|---|---|---|
| committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-03-30 11:27:02 -0400 |
| commit | 3cddb3c692acd3536a7cc8542a29f0cc3c0ac3d6 (patch) | |
| tree | 92ce53034cad599bee0ef0f0c6f92ff73883aef3 /src/wayland-server.c | |
| parent | wayland-util: Fix wl_array signedness warnings (diff) | |
| download | wayland-3cddb3c692acd3536a7cc8542a29f0cc3c0ac3d6.tar wayland-3cddb3c692acd3536a7cc8542a29f0cc3c0ac3d6.tar.gz wayland-3cddb3c692acd3536a7cc8542a29f0cc3c0ac3d6.tar.bz2 wayland-3cddb3c692acd3536a7cc8542a29f0cc3c0ac3d6.tar.lz wayland-3cddb3c692acd3536a7cc8542a29f0cc3c0ac3d6.tar.xz wayland-3cddb3c692acd3536a7cc8542a29f0cc3c0ac3d6.tar.zst wayland-3cddb3c692acd3536a7cc8542a29f0cc3c0ac3d6.zip | |
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.
Diffstat (limited to 'src/wayland-server.c')
| -rw-r--r-- | src/wayland-server.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
