Win32: kill the Win64-induced warning
authorRémi Denis-Courmont <rem@videolan.org>
Thu, 8 May 2008 20:26:36 +0000 (23:26 +0300)
committerRémi Denis-Courmont <rem@videolan.org>
Thu, 8 May 2008 20:26:36 +0000 (23:26 +0300)
src/misc/win32_specific.c

index eab246b..683337a 100644 (file)
@@ -309,7 +309,8 @@ LRESULT CALLBACK WMCOPYWNDPROC( HWND hwnd, UINT uMsg, WPARAM wParam,
         vlc_object_t *p_this;
         playlist_t *p_playlist;
 
         vlc_object_t *p_this;
         playlist_t *p_playlist;
 
-        p_this = (vlc_object_t *)GetWindowLongPtr( hwnd, GWLP_USERDATA );
+        p_this = (vlc_object_t *)
+            (uintptr_t)GetWindowLongPtr( hwnd, GWLP_USERDATA );
 
         if( !p_this ) return 0;
 
 
         if( !p_this ) return 0;