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 1109

Summary: win64, cast from pointer to integer of different size
Product: SDL Reporter: Ozkan Sezer <sezeroz>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: x86_64   
OS: Windows (All)   
Attachments: SDL_windowskeyboard.c win64 warning fixes

Description Ozkan Sezer 2011-01-26 12:33:42 UTC
I got warnings from SDL_windowskeyboard.c when I compiled for win64. like:

src/video/windows/SDL_windowskeyboard.c: In function 'IME_GetId':
src/video/windows/SDL_windowskeyboard.c:537: warning: cast from pointer to integer of different size
src/video/windows/SDL_windowskeyboard.c: In function 'IME_GetCandidateList':
src/video/windows/SDL_windowskeyboard.c:784: warning: cast from pointer to integer of different size
src/video/windows/SDL_windowskeyboard.c:784: warning: cast to pointer from integer of different size
src/video/windows/SDL_windowskeyboard.c:804: warning: cast from pointer to integer of different size
src/video/windows/SDL_windowskeyboard.c:804: warning: cast to pointer from integer of different size

I am not very much familiar with the code but gcc seems right here.
Comment 1 Sam Lantinga 2011-01-27 00:35:57 UTC
Do you have a good patch?  It'll probably be a little while before I get a chance to look at these...
Comment 2 Ozkan Sezer 2011-01-27 00:51:02 UTC
Created attachment 561 [details]
SDL_windowskeyboard.c win64 warning fixes

Attached a quick patch which fixes the warnings.  Can't test functionality for now but it is pretty trivial.
Comment 3 Sam Lantinga 2011-01-27 08:43:16 UTC
Your patch is in, thanks!
http://hg.libsdl.org/SDL/rev/d68e9722ff4d