aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-09-14 23:48:23 +0200
committerlemon <lsof@mailbox.org>2025-09-14 23:48:23 +0200
commit8f81060859c6719281499d1f5717fc576256ab9a (patch)
treee50ff549d1cc1070132539541b940eda588a4a13 /test
parent3386b092d8e8b00191ef511ea585fe875578efe7 (diff)
fix signed bitfield errata
Diffstat (limited to 'test')
-rw-r--r--test/test4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test4.c b/test/test4.c
index 12d9ca4..c2dcd5f 100644
--- a/test/test4.c
+++ b/test/test4.c
@@ -14,8 +14,8 @@ int : 0;
short a:15;
};
-int bitf(struct foo q) {
- return q.x + q.y - q.k + q.a;
+int bitf(struct foo *q) {
+ return q->x + q->y - q->k + q->a;
}
int main() {