[hackers] [PATCH] libutil: fix warning about implicit conversion in unescape.c

From: David Demelier <markand_AT_malikania.fr>
Date: Mon, 16 Sep 2019 17:19:13 +0200

---
 libutil/unescape.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libutil/unescape.c b/libutil/unescape.c
index d8ed2a2..a170486 100644
--- a/libutil/unescape.c
+++ b/libutil/unescape.c
_AT_@ -39,7 +39,7 @@ unescape(char *s)
 		} else if (is_odigit(*r)) {
 			for (q = 0, m = 4; m && is_odigit(*r); m--, r++)
 				q = q * 8 + (*r - '0');
-			*w++ = MIN(q, 255);
+			*w++ = (char)MIN(q, 255);
 		} else if (*r == 'x' && isxdigit(r[1])) {
 			r++;
 			for (q = 0, m = 2; m && isxdigit(*r); m--, r++)
-- 
2.14.5
Received on Mon Sep 16 2019 - 17:19:13 CEST

This archive was generated by hypermail 2.3.0 : Mon Sep 16 2019 - 17:24:24 CEST