From: John Ellson Date: Mon, 20 Jul 2015 12:22:39 +0000 (-0400) Subject: revert IDTYPE to unsigned long X-Git-Tag: TRAVIS_CI_BUILD_EXPERIMENTAL~109^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=beacdccf73bc0d60a036bf87862ff86e286b3aa4;p=graphviz revert IDTYPE to unsigned long --- diff --git a/lib/cgraph/cgraph.h b/lib/cgraph/cgraph.h index df3ada575..1e9f9241e 100644 --- a/lib/cgraph/cgraph.h +++ b/lib/cgraph/cgraph.h @@ -37,8 +37,17 @@ extern "C" { #define NILedge NIL(Agedge_t*) #define NILsym NIL(Agsym_t*) +#if 0 +// FIXME - I didn't understand this comment about Win64. +// - What is that loss? +// - Do we ever cast a pointer to an IDTYPE in graphviz? +// - Is uintptr_t is available on all architectures/compilers? + /* avoid loss when casting pointer to unsigned long on Win64 */ typedef uintptr_t IDTYPE; +#else +typedef unsigned long IDTYPE; +#endif /* forward struct type declarations */ typedef struct Agtag_s Agtag_t;