diff dlib/dlib.h @ 306:7a76f872ce73

- Eliminated gcc 4.2.3 warnings on 64bit OS.
author jcid
date Tue, 12 Aug 2008 22:24:37 +0200
parents 1540ba94d145
children 17d77a1950d8
line wrap: on
line diff
--- a/dlib/dlib.h	Wed Aug 06 14:58:39 2008 +0200
+++ b/dlib/dlib.h	Tue Aug 12 22:24:37 2008 +0200
@@ -35,7 +35,7 @@
 /* TODO: include a void* size test in configure.in */
 /* (long) works for both 32bit and 64bit */
 #define VOIDP2INT(p)    ((long)(p))
-#define INT2VOIDP(i)    ((void*)(i))
+#define INT2VOIDP(i)    ((void*)((long)(i)))
 
 /*
  *-- Memory -------------------------------------------------------------------