winmm: fix type-conversions

Robert Reif reif at earthlink.net
Tue Feb 15 17:42:11 CST 2005


James Hawkins wrote:

>Hi,
>
>msvc picked up a couple type-conversions problems in winmm.
>
>  
>
>-            union { float f; char c[4]; } sample;
>+            union { double f; char c[4]; } sample;
>             sample.f=y;
>  
>
A float is 4 bytes and a double is 8.  They are not interchangeable.  
The H/W reads/writes 4 byte floats.




More information about the wine-patches mailing list