shithub: trueawk

Download patch

ref: 28d4561613bceda26f93833333cdd3317d416243
parent: 0575fbc687f4ce8de6e25848350069a44bbe48ff
parent: 9666b77b369e342353c29eed5415123f58e58948
author: ozan yigit <ozan.yigit@gmail.com>
date: Mon Oct 30 15:57:33 EDT 2023

Merge branch 'millert-big_endian_fix' into staging

--- a/b.c
+++ b/b.c
@@ -529,7 +529,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:
@@ -970,7 +970,7 @@
 		rtok = relex();
 		if (rtok == ')') {	/* special pleading for () */
 			rtok = relex();
-			return unary(op2(CCL, NIL, (Node *) tostring("")));
+			return unary(op2(CCL, NIL, (Node *) cclenter("")));
 		}
 		np = regexp();
 		if (rtok == ')') {
@@ -993,7 +993,7 @@
 		return (concat(op2(CAT, np, primary())));
 	case EMPTYRE:
 		rtok = relex();
-		return (concat(op2(CAT, op2(CCL, NIL, (Node *) tostring("")),
+		return (concat(op2(CAT, op2(CCL, NIL, (Node *) cclenter("")),
 				primary())));
 	}
 	return (np);
--