harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit a3447a663f73a7e4ea7a71ddf23944becf936f50
parent 9e471e760cbab04fa0cba30b586dc532cf9b6848
Author: Sebastian <sebastian@sebsite.pw>
Date:   Mon,  7 Mar 2022 20:46:23 -0500

typedef: cast char to unsigned char in isalnum

Signed-off-by: Sebastian <sebastian@sebsite.pw>

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

diff --git a/src/typedef.c b/src/typedef.c @@ -111,7 +111,7 @@ emit_const(const struct expression *expr, FILE *out) fprintf(out, "\""); for (size_t i = 0; i < val->string.len; i += 1) { char c = val->string.value[i]; - if (isalnum(c)) { + if (isalnum((unsigned char)c)) { fprintf(out, "%c", c); } else { fprintf(out, "\\x%02X", c);