Mike McCormack : server: Cast handles to unsigned long for win64 compatibility.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Jun 15 07:12:26 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: e1c16ff3564d260f773d501c7f46206e8867d83b
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=e1c16ff3564d260f773d501c7f46206e8867d83b

Author: Mike McCormack <mike at codeweavers.com>
Date:   Thu Jun 15 17:10:07 2006 +0900

server: Cast handles to unsigned long for win64 compatibility.

---

 server/handle.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/handle.c b/server/handle.c
index e1e82e5..d7cf12a 100644
--- a/server/handle.c
+++ b/server/handle.c
@@ -71,11 +71,11 @@ #define MIN_HANDLE_ENTRIES  32
 /* handles are a multiple of 4 under NT; handle 0 is not used */
 inline static obj_handle_t index_to_handle( int index )
 {
-    return (obj_handle_t)((index + 1) << 2);
+    return (obj_handle_t)((unsigned long)(index + 1) << 2);
 }
 inline static int handle_to_index( obj_handle_t handle )
 {
-    return ((unsigned int)handle >> 2) - 1;
+    return ((unsigned long)handle >> 2) - 1;
 }
 
 /* global handle conversion */




More information about the wine-cvs mailing list