From: Florian Forster Date: Mon, 17 May 2010 07:53:49 +0000 (+0200) Subject: src/sn_stage.c: Fix comparison of signed and unsigned integers. X-Git-Tag: v1.0.0~43 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=c83e7d24774acd90700ae7201ae6c7610dc052d6;p=sort-networks.git src/sn_stage.c: Fix comparison of signed and unsigned integers. --- diff --git a/src/sn_stage.c b/src/sn_stage.c index d0467a4..56512ea 100644 --- a/src/sn_stage.c +++ b/src/sn_stage.c @@ -431,7 +431,7 @@ int sn_stage_serialize (sn_stage_t *s, #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;