Hi, On Mon, Apr 17, 2017 at 09:11:56PM +0800, comp wrote: > float b; > *(int*)&b=a;
This is undefined behaviour. Try with -fno-strict-aliasing, does it then work as you expect? Segher
Hi, On Mon, Apr 17, 2017 at 09:11:56PM +0800, comp wrote: > float b; > *(int*)&b=a;
This is undefined behaviour. Try with -fno-strict-aliasing, does it then work as you expect? Segher