From: Florian Forster Date: Mon, 10 May 2010 09:36:21 +0000 (+0200) Subject: src/sn_network.c: Fix comparison between signed and unsigned. X-Git-Tag: v1.0.0~61 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=bc19ee0ad538c81aee72110e77e24bf0d5540ae5;p=sort-networks.git src/sn_network.c: Fix comparison between signed and unsigned. --- diff --git a/src/sn_network.c b/src/sn_network.c index 1fac7dc..0705a91 100644 --- a/src/sn_network.c +++ b/src/sn_network.c @@ -912,7 +912,7 @@ int sn_network_serialize (sn_network_t *n, char **ret_buffer, /* {{{ */ #define SNPRINTF_OR_FAIL(...) \ status = snprintf (buffer, buffer_size, __VA_ARGS__); \ - if ((status < 1) || (status >= buffer_size)) \ + if ((status < 1) || (((size_t) status) >= buffer_size)) \ return (-1); \ buffer += status; \ buffer_size -= status;