From 6c7cdc537b7b341f9ca25a3e8b61de46c99840e7 Mon Sep 17 00:00:00 2001 From: lemon Date: Sat, 13 Dec 2025 17:34:15 +0100 Subject: c: handle more static eval edgecases for int -> ptr sqlite3 was falling back to `((void*)&((char*)0)[X])` for INT_TO_PTR, which this handles now. --- c/c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'c/c.c') diff --git a/c/c.c b/c/c.c index d79439a..5ff2041 100644 --- a/c/c.c +++ b/c/c.c @@ -788,7 +788,7 @@ ppostfixopers(struct comp *cm, struct expr *ex) rhs = commaexpr(cm); span = ex->span; if (!joinspan(&span.ex, tk.span.ex) || !joinspan(&span.ex, ex->span.ex) - || (peek(cm, &tk2), !joinspan(&span.ex, tk.span.ex))) + || (peek(cm, &tk), !joinspan(&span.ex, tk.span.ex))) span = tk.span; expect(cm, ']', NULL); -- cgit v1.2.3