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 <> escreveu:

De: Kai Tietz <>
Assunto: Re: [Mingw-w64-public] enhancements on the win32 to win64 conversion
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.


-----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.

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

Mingw-w64-public mailing list