From: Michael Göhler Date: Sun, 2 Nov 2014 16:02:20 +0000 (+0100) Subject: fixed compiler warning viewer.c:576, closes #55 X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=8aa16fe57be3d85e46815509df69a61682be9bf0;p=smdp.git fixed compiler warning viewer.c:576, closes #55 --- diff --git a/src/viewer.c b/src/viewer.c index 447d3fe..2cf0f0e 100644 --- a/src/viewer.c +++ b/src/viewer.c @@ -573,7 +573,7 @@ void inline_display(WINDOW *window, const char *c, const int colors) { // closing special char (or second backslash) // only if not followed by :alnum: if((stack->top)(stack, *i) && - (!isalnum(*(i + 1)) || *(i + 1) == '\0' || *i == '\\')) { + (!isalnum((int)i[1]) || *(i + 1) == '\0' || *i == '\\')) { switch(*i) { // print escaped backslash