diff options
| author | 2025-09-14 23:48:23 +0200 | |
|---|---|---|
| committer | 2025-09-14 23:48:23 +0200 | |
| commit | 8f81060859c6719281499d1f5717fc576256ab9a (patch) | |
| tree | e50ff549d1cc1070132539541b940eda588a4a13 /test/test4.c | |
| parent | 3386b092d8e8b00191ef511ea585fe875578efe7 (diff) | |
fix signed bitfield errata
Diffstat (limited to 'test/test4.c')
| -rw-r--r-- | test/test4.c | 4 |
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() { |