Commit d7725fb
committed
In-place conversion of buffer gives 'member access within misaligned address'
Skip validation of floats in the monster_test when there has been a in-place conversion
of the buffer. Gives undefined behaviour warnings on 32bit and macOS.
and not sure how to handled it otherwise.
"monster_test.c:2638:34: runtime error: member access within misaligned address 0xff9c52f4 for
type 'MyGame_Example_Vec3_t' (aka 'struct MyGame_Example_Vec3'), which requires 16 byte alignment
0xff9c52f4: note: pointer points here.."
Signed-off-by: Björn Svensson <[email protected]>1 parent a846bff commit d7725fb
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2568 | 2568 | | |
2569 | 2569 | | |
2570 | 2570 | | |
| 2571 | + | |
| 2572 | + | |
2571 | 2573 | | |
2572 | 2574 | | |
2573 | 2575 | | |
2574 | 2576 | | |
2575 | 2577 | | |
2576 | 2578 | | |
2577 | 2579 | | |
| 2580 | + | |
2578 | 2581 | | |
2579 | 2582 | | |
2580 | 2583 | | |
| |||
2633 | 2636 | | |
2634 | 2637 | | |
2635 | 2638 | | |
| 2639 | + | |
| 2640 | + | |
2636 | 2641 | | |
2637 | 2642 | | |
2638 | 2643 | | |
2639 | 2644 | | |
2640 | 2645 | | |
2641 | 2646 | | |
2642 | 2647 | | |
| 2648 | + | |
2643 | 2649 | | |
2644 | 2650 | | |
2645 | 2651 | | |
| |||
0 commit comments