Skip to content

Commit 248bf5d

Browse files
committed
Parser: draft fix for struct compound literal init (issue #299)
Investigated the bug where compound literals like (struct point){10, 20, 30} produced shifted field values (e.g., x got garbage, y=10, z=20). Added a temporary fix by adjusting the source address +4 bytes in parser.c. Tested with simple cases: x=10, y=20, z=30. This is an experimental patch; needs review for design correctness. Refs: #299
1 parent 069d501 commit 248bf5d

File tree

1 file changed

+137
-159
lines changed

1 file changed

+137
-159
lines changed

0 commit comments

Comments
 (0)