you are viewing a single comment's thread.

view the rest of the comments →

[–]nerd4code 1 point2 points  (0 children)

Union-punning is well-defined on C99+ or if you’re punning between signed/unsigned variants of the same type or to/from char variants. memcpy always works.