Re: winmm: fix type-conversions
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.
On Tue, 15 Feb 2005 18:42:11 -0500, Robert Reif <reif(a)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
participants (2)
-
James Hawkins -
Robert Reif