summaryrefslogtreecommitdiff
path: root/dlib/dlib.h
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-08-12 22:24:37 +0200
committerjcid <devnull@localhost>2008-08-12 22:24:37 +0200
commit50b3b7b3e576bfcb8682ce7d4b0eb15086c214b4 (patch)
tree8dcfb49b2dc4a3d650bf8cbba160e057ae4fa0bd /dlib/dlib.h
parent9eba6c5572de8bfe82606206e8a44a403d936f32 (diff)
- Eliminated gcc 4.2.3 warnings on 64bit OS.
Diffstat (limited to 'dlib/dlib.h')
-rw-r--r--dlib/dlib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/dlib/dlib.h b/dlib/dlib.h
index cd3b9fc5..aa32beb4 100644
--- a/dlib/dlib.h
+++ b/dlib/dlib.h
@@ -35,7 +35,7 @@ extern "C" {
/* 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 -------------------------------------------------------------------