From 8ade2d5e36cf0c137514017f85ee65beb3bcc6d6 Mon Sep 17 00:00:00 2001 From: lemon Date: Sat, 18 Apr 2026 22:32:33 +0200 Subject: type: make struct field offset an int Yes, I've ran into code with structures with fields past the 16 bit range. --- src/c_type.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c_type.h b/src/c_type.h index 3b1e022..8a07440 100644 --- a/src/c_type.h +++ b/src/c_type.h @@ -72,7 +72,7 @@ typedef struct { typedef struct { Type t; - ushort off; + uint off; uchar bitsiz, bitoff : 6, qual : 2; -- cgit v1.2.3