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 - win64, cast from pointer to integer of different size
Summary: win64, cast from pointer to integer of different size
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: x86_64 Windows (All)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-26 12:33 UTC by Ozkan Sezer
Modified: 2011-01-27 08:43 UTC (History)
0 users

See Also:


Attachments
SDL_windowskeyboard.c win64 warning fixes (1.59 KB, patch)
2011-01-27 00:51 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 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