From 28cb28d09593f9195dc29d208da0658ef8c582b6 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Fri, 21 Dec 2012 15:55:00 +0100 Subject: [PATCH] Add a missing cast for some platforms --- src/script.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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++; } -- 2.39.5