Fabrizio Caruso Posted April 14, 2022 Share Posted April 14, 2022 @jedimatt42 I wonder whether my problem is not the struct or something else. Is there a way to compile with no optimization? For the sake of finding the root cause I have tried #pragma pack(1), -fpack-struct=1, __attribute__(__packed__), __attribute__((packed)) in several combinations. I still get the bug with item->_tile wrongly compiled in the first occurrence of the line below (but not on the second) _XL_DRAW(item->_x,item->_y,item->_tile,item->_color); Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.