diff options
| author | Pekka Paalanen <ppaalanen@gmail.com> | 2012-03-22 11:49:35 +0200 |
|---|---|---|
| committer | Pekka Paalanen <ppaalanen@gmail.com> | 2012-03-23 15:20:03 +0200 |
| commit | 3b7cdcb5c6cbcd8e98c9c16632249b7e2905868d (patch) | |
| tree | 08d5f0e53c0388f0a2b3af2923013e33913bb0b6 /src/connection.c | |
| parent | scanner: fix a signedness warning (diff) | |
| download | wayland-3b7cdcb5c6cbcd8e98c9c16632249b7e2905868d.tar wayland-3b7cdcb5c6cbcd8e98c9c16632249b7e2905868d.tar.gz wayland-3b7cdcb5c6cbcd8e98c9c16632249b7e2905868d.tar.bz2 wayland-3b7cdcb5c6cbcd8e98c9c16632249b7e2905868d.tar.lz wayland-3b7cdcb5c6cbcd8e98c9c16632249b7e2905868d.tar.xz wayland-3b7cdcb5c6cbcd8e98c9c16632249b7e2905868d.tar.zst wayland-3b7cdcb5c6cbcd8e98c9c16632249b7e2905868d.zip | |
Fix harmless signedness warnings
Trivially silence all the harmless (i.e. would have been correct also
without this fix) compiler warnings:
warning: comparison between signed and unsigned integer expressions
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
Diffstat (limited to 'src/connection.c')
| -rw-r--r-- | src/connection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connection.c b/src/connection.c index 4ac5bf8..9bb2ca4 100644 --- a/src/connection.c +++ b/src/connection.c @@ -546,7 +546,7 @@ wl_connection_demarshal(struct wl_connection *connection, struct wl_closure *closure = &connection->receive_closure; count = strlen(message->signature) + 2; - if (count > ARRAY_LENGTH(closure->types)) { + if (count > (int)ARRAY_LENGTH(closure->types)) { printf("too many args (%d)\n", count); errno = EINVAL; wl_connection_consume(connection, size); |
