ref: 75c017ca09a70e14a862f7285cf91bb87ec1f443
parent: c8b4698d57d7b1dc6275fd514fcdf163955e8f67
author: Todd C. Miller <Todd.Miller@sudo.ws>
date: Mon Sep 18 13:34:34 EDT 2023
Fix a bad cast to char * that causes incorrect results on big endian. Now that awk stores chars as int we need to cast the Node * to int *.
--- a/b.c
+++ b/b.c
@@ -527,7 +527,7 @@
setvec[lp] = 1;
setcnt++;
}
- if (type(p) == CCL && (*(char *) right(p)) == '\0')
+ if (type(p) == CCL && (*(int *) right(p)) == 0)
return(0); /* empty CCL */
return(1);
case PLUS:
--
⑨