include: Fix casting on 64bit platforms.
authorAndreas Schneider <asn@cryptomilk.org>
Fri, 12 Oct 2012 21:00:01 +0000 (23:00 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 12 Oct 2012 21:00:01 +0000 (23:00 +0200)
src/include/cmocka.h

index 9720f04..0e8e25c 100755 (executable)
@@ -71,7 +71,7 @@ int __stdcall IsDebuggerPresent();
 
 /* Perform an unsigned cast to LargestIntegralType. */
 #define cast_to_largest_integral_type(value) \
-    ((LargestIntegralType)((unsigned)(size_t)(value)))
+    ((LargestIntegralType)((size_t)(value)))
 
 /* Smallest integral type capable of holding a pointer. */
 #ifndef _UINTPTR_T