We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 951 - bad cast in native_midi_win32.c (mingw-w64 / x64)
Summary: bad cast in native_midi_win32.c (mingw-w64 / x64)
Status: RESOLVED FIXED
Alias: None
Product: SDL_mixer
Classification: Unclassified
Component: misc (show other bugs)
Version: 1.2.11
Hardware: Other Windows (All)
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-14 08:07 UTC by Ozkan Sezer
Modified: 2010-02-16 07:31 UTC (History)
0 users

See Also:


Attachments
w64 patch for native_midi_win32.c (888 bytes, patch)
2010-02-14 08:08 UTC, Ozkan Sezer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ozkan Sezer 2010-02-14 08:07:08 UTC
This seems to have been missed during recent several native_midi_win32.c fixes: The cast must be made to DWORD_PTR which is pointer-wide not to DWORD which is strictly 32 bits.  Tiny patch attached.  Compile tested against SDL-1.2 (patched according to bug #943) and using a mingw-w64 cross-toolchain configured for x86_64-w64-mingw32.

--
Ozkan
Comment 1 Ozkan Sezer 2010-02-14 08:08:00 UTC
Created attachment 493 [details]
w64 patch for native_midi_win32.c
Comment 2 Ryan C. Gordon 2010-02-16 07:31:03 UTC
Fixed in svn revision #5554, thanks!

--ryan.