aboutsummaryrefslogtreecommitdiff
path: root/sway/ipc-server.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/ipc-server.c')
-rw-r--r--sway/ipc-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/ipc-server.c b/sway/ipc-server.c
index 9ea034d1..f6116921 100644
--- a/sway/ipc-server.c
+++ b/sway/ipc-server.c
@@ -205,7 +205,7 @@ int ipc_client_handle_readable(int client_fd, uint32_t mask, void *data) {
client->payload_length = buf32[0];
client->current_command = (enum ipc_command_type)buf32[1];
- if (read_available - received >= client->payload_length) {
+ if (read_available - received >= (long)client->payload_length) {
ipc_client_handle_command(client);
}