include/basetsd.h: Fix int64 to int truncation warnings when compiling with a 64-bit PSDK compiler.

Dmitry Timoshkov dmitry at
Thu Jun 28 06:00:00 CDT 2012

Michael Stefaniuc <mstefani at> wrote:

> afair the fix is to disable the int truncation warnings in MSVC. For
> whatever reason they seem to enable those bogus warnings.

The warnings are not bogus, the PSDK compiler also emits a warning when
truncating from double to float while gcc keeps silence for instance.
Anyway, the patch shouldn't hurt, PSDK headers have similar casts. This
patch also helps to pay more attention to warnings: when there are lots
of existing ones, it's hard to recognize new and possibly real problems
in the code.


More information about the wine-devel mailing list