From: Steven Barth Date: Fri, 21 Dec 2012 14:55:00 +0000 (+0100) Subject: Add a missing cast for some platforms X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=28cb28d09593f9195dc29d208da0658ef8c582b6;p=oweals%2Fodhcp6c.git Add a missing cast for some platforms --- diff --git a/src/script.c b/src/script.c index ff81278..66a15a7 100644 --- a/src/script.c +++ b/src/script.c @@ -58,7 +58,8 @@ ssize_t script_unhexlify(uint8_t *dst, size_t len, const char *src) || y < 0 || (y = hexvals[y]) < 0) return -1; dst[c] = x << 4 | y; - while (*src < 0 || (*src && hexvals[(uint8_t)*src] < 0)) + while (((int8_t)*src) < 0 || + (*src && hexvals[(uint8_t)*src] < 0)) src++; }