diff options
Diffstat (limited to 'dlib/dlib.h')
-rw-r--r-- | dlib/dlib.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dlib/dlib.h b/dlib/dlib.h index 6caf7c97..c54ab6ad 100644 --- a/dlib/dlib.h +++ b/dlib/dlib.h @@ -33,7 +33,8 @@ extern "C" { *-- Casts ------------------------------------------------------------------- */ /* TODO: include a void* size test in configure.in */ -#define VOIDP2INT(p) ((int)(p)) +/* (long) works for both 32bit and 64bit */ +#define VOIDP2INT(p) ((long)(p)) #define INT2VOIDP(i) ((void*)(i)) /* |