Skip to content

Commit

Permalink
Fix for Mantis 858: subtract_pointers() isn't 64-bit on OSX-64
Browse files Browse the repository at this point in the history
  • Loading branch information
David Kinder committed Feb 12, 2012
1 parent 4e4fefb commit 265d8e3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions header.h
Expand Up @@ -624,11 +624,7 @@ static int32 unique_task_id(void)
void hfree(void *);
#define subtract_pointers(p1,p2) (long)((char _huge *)p1-(char _huge *)p2)
#else
#ifdef UNIX64
#define subtract_pointers(p1,p2) (((char *) p1)-((char *) p2))
#else
#define subtract_pointers(p1,p2) (((int32) p1)-((int32) p2))
#endif
#endif

/* ------------------------------------------------------------------------- */
Expand Down

0 comments on commit 265d8e3

Please sign in to comment.