From: Steven Barth Date: Sat, 22 Dec 2012 09:36:29 +0000 (+0100) Subject: Fix compilation on platforms with unsgined char X-Git-Tag: debian/1.1+git20160131-1~209 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=odhcp6c.git;a=commitdiff_plain;h=e8b21f28d61621624a74c40f3709835476a88293;hp=28cb28d09593f9195dc29d208da0658ef8c582b6 Fix compilation on platforms with unsgined char --- diff --git a/src/script.c b/src/script.c index 66a15a7..2117aeb 100644 --- a/src/script.c +++ b/src/script.c @@ -24,7 +24,7 @@ #include "odhcp6c.h" static const char hexdigits[] = "0123456789abcdef"; -static const char hexvals[] = { +static const int8_t hexvals[] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -2, -2, -1, -1, -2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,