From 93a6ca9b65fa3b14ff5077343439113a1c9734fd Mon Sep 17 00:00:00 2001 From: meep-eep Date: Fri, 17 Jun 2005 16:16:09 +0000 Subject: [PATCH] Get rid of warning on systems with 64 bits pointers. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1829 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/video/vidplayer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sc2/src/sc2code/libs/video/vidplayer.c b/sc2/src/sc2code/libs/video/vidplayer.c index 4f614ad90..1e72d9e39 100644 --- a/sc2/src/sc2code/libs/video/vidplayer.c +++ b/sc2/src/sc2code/libs/video/vidplayer.c @@ -515,7 +515,7 @@ static void vp_BufferTag (TFB_SoundSample* sample, TFB_SoundTag* tag) { TFB_VideoClip* vid = sample->data; - uint32 frame = (uint32) tag->data; + uint32 frame = (uint32) (intptr_t) tag->data; LockMutex (vid->guard); vid->want_frame = frame; // let it go! @@ -528,6 +528,6 @@ vp_QueueBuffer (TFB_SoundSample* sample, audio_Object buffer) //TFB_VideoClip* vid = sample->data; TFB_TagBuffer (sample, buffer, - (void *) SoundDecoder_GetFrame (sample->decoder)); + (void *) (intptr_t) SoundDecoder_GetFrame (sample->decoder)); }