thanks a lot, and I will remember also to always use -Wall when converting win32 code to win64


--- Em seg, 23/5/11, Kai Tietz <ktietz70@googlemail.com> escreveu:

De: Kai Tietz <ktietz70@googlemail.com>
Assunto: Re: [Mingw-w64-public] enhancements on the win32 to win64 conversion
Para: mingw-w64-public@lists.sourceforge.net
Data: Segunda-feira, 23 de Maio de 2011, 12:09

Your code violates strict aliasing. This is your problem here. Use instead of address cast to integer a union construct and your code will behave as you expect.
Nevertheless why aren't you simply using here +0.5?

You can try if your code works with option -fno-strict-aliasing.

Regards,
Kai

-----Anexo incorporado-----

------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its
next-generation tools to help Windows* and Linux* C/C++ and Fortran
developers boost performance applications - including clusters.
http://p.sf.net/sfu/intel-dev2devmay

-----Anexo incorporado-----

_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public