-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
Code like the following violates aliasing rules, an object shall only be accessed through its declared type or through a char pointer.
I think only the only legal way is to use memcpy (or assembly). Type punning through unions does not help here.
Line 54 in d0beec8
| #define cw_store32(x) *(uint32_t*)p = (uint32_t)x; |
Metadata
Metadata
Assignees
Labels
No labels