winmm: fix type-conversions

James Hawkins truiken at gmail.com
Tue Feb 15 17:56:13 CST 2005


On Tue, 15 Feb 2005 18:42:11 -0500, Robert Reif <reif at earthlink.net> wrote:
> 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.

Hi,

Reverted change from float to double spotted by Robert. 

Changelog
* fix improper type-conversions

-- 
James Hawkins
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wave-type.diff
Type: text/x-diff
Size: 1724 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050215/1e1f4814/wave-type.bin


More information about the wine-patches mailing list