cproc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/cproc
Log | Files | Refs | Submodules | README | LICENSE

commit 35998a93f9a59a34477890637fda75982d9a5e1c
parent ca6384fcf7fea13e095c278fec7f3e20c943ad62
Author: Andrew Chambers <andrewchambers@fastmail.com>
Date:   Fri, 15 Feb 2019 20:03:29 +1300

Fix hex escape in char literals.

Diffstat:
Mexpr.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/expr.c b/expr.c @@ -148,7 +148,7 @@ unescape(char **p) ++s; assert(isxdigit(*s)); c = 0; - do c = c * 16 + (*s > '9' ? tolower(*s) - 'a' : *s - '0'); + do c = c * 16 + (*s > '9' ? 10 + tolower(*s) - 'a' : *s - '0'); while (isxdigit(*++s)); break; default: