]> granicus.if.org Git - graphviz/commitdiff
revert IDTYPE to unsigned long
authorJohn Ellson <ellson@research.att.com>
Mon, 20 Jul 2015 12:22:39 +0000 (08:22 -0400)
committerJohn Ellson <ellson@research.att.com>
Mon, 20 Jul 2015 12:22:39 +0000 (08:22 -0400)
lib/cgraph/cgraph.h

index df3ada5758bd87fd6dbd25793eb1cdd9f9d41f0f..1e9f9241ee705d6928b781efb9b0437dd8dd67b3 100644 (file)
@@ -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;