From e1c16ff3564d260f773d501c7f46206e8867d83b Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Thu, 15 Jun 2006 17:10:07 +0900 Subject: [PATCH] server: Cast handles to unsigned long for win64 compatibility. --- server/handle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/handle.c b/server/handle.c index e1e82e5b4f2..d7cf12a4a8c 100644 --- a/server/handle.c +++ b/server/handle.c @@ -71,11 +71,11 @@ static struct handle_table *global_table; /* 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 */