lwsws specifically signed char return lejp
authorAndy Green <andy@warmcat.com>
Sat, 9 Apr 2016 01:32:01 +0000 (09:32 +0800)
committerAndy Green <andy@warmcat.com>
Wed, 13 Apr 2016 03:53:40 +0000 (11:53 +0800)
Signed-off-by: Andy Green <andy@warmcat.com>
lwsws/conf.c

index c720d86..ff4029d 100644 (file)
@@ -330,7 +330,7 @@ lwsws_get_config(void *user, const char *f, const char * const *paths,
                if (!n)
                        break;
 
-               m = (int)(char)lejp_parse(&ctx, buf, n);
+               m = (int)(signed char)lejp_parse(&ctx, buf, n);
        } while (m == LEJP_CONTINUE);
 
        close(fd);