aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2026-04-18 22:32:33 +0200
committerlemon <lsof@mailbox.org>2026-04-18 22:32:33 +0200
commit8ade2d5e36cf0c137514017f85ee65beb3bcc6d6 (patch)
treef4a3a598c5066aadd054345c9c10f98d0e4b11d5
parent87b7c10777f1e9114574ec6fc3736dc478edc0cd (diff)
type: make struct field offset an int
Yes, I've ran into code with structures with fields past the 16 bit range.
-rw-r--r--src/c_type.h2
1 files changed, 1 insertions, 1 deletions
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;