Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use memcpy() instead of possibly broken aliasing through an union.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Fri, 29 Jun 2012 07:03:47 +0000 (09:03 +0200)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Fri, 29 Jun 2012 07:03:47 +0000 (09:03 +0200)
commit19e031b5c14b35fa1bc3124e2460a98a496eea9c
tree606cb5ca539298666410cfc58bf03ea4a242274c
parent8b52cae07e74264248eaeb8c5277c808de55c18c
Use memcpy() instead of possibly broken aliasing through an union.

According to C standard:
J.1 Unspecified behavior
The following are unspecified:
[...]
-- The value of a union member other than the last one stored into (6.2.6.1).
src/simix/smx_context_sysv.c