Fix signed char fed to isspace

pull/91/head
Roy Sprowl 7 years ago
parent b87a27c15c
commit 385b476a30
  1. 2
      parson.c

@ -45,7 +45,7 @@
#define SIZEOF_TOKEN(a) (sizeof(a) - 1)
#define SKIP_CHAR(str) ((*str)++)
#define SKIP_WHITESPACES(str) while (isspace(**str)) { SKIP_CHAR(str); }
#define SKIP_WHITESPACES(str) while (isspace((unsigned char)(**str))) { SKIP_CHAR(str); }
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#undef malloc

Loading…
Cancel
Save