diff --git a/lib/util.c b/lib/util.c index 8b7a7161..cc262841 100644 --- a/lib/util.c +++ b/lib/util.c @@ -434,14 +434,14 @@ saHandleDestroy ( SaErrorT saHandleInstanceGet ( struct saHandleDatabase *handleDatabase, - unsigned int handle, + SaUint64T int handle, void **instance) { SaErrorT error = SA_OK; pthread_mutex_lock (&handleDatabase->mutex); - if (handle >= handleDatabase->handleCount) { + if (handle >= (SaUint64T)handleDatabase->handleCount) { error = SA_ERR_BAD_HANDLE; goto error_exit; }