[Nauty-list] nauty24b4 nausparse.h patch

Paul T. Darga pdarga at umich.edu
Thu Aug 2 11:04:58 EST 2007


Hi all,

Version nauty24b4 of nauty has a bug in the DYNFREE macro of
nausparse.h.  Here's a patch to fix it.

Cheers,

Paul

--- nauty24b4/nausparse.h	2007-07-11 04:40:07.000000000 -0400
+++ nauty24b4-paul/nausparse.h	2007-08-01 18:47:52.000000000 -0400
@@ -29,9 +29,9 @@
    DYNALLOC1(int,(sg).d,(sg).dlen,nlen,msg); \
    DYNALLOC1(int,(sg).e,(sg).elen,ndelen,msg); } while (0)
 #define SG_FREE(sg) do { \
-   DYNFREE(int,(sg).v,(sg).vlen); \
-   DYNFREE(int,(sg).d,(sg).dlen); \
-   DYNFREE(int,(sg).e,(sg).elen); } while (0)
+   DYNFREE((sg).v,(sg).vlen); \
+   DYNFREE((sg).d,(sg).dlen); \
+   DYNFREE((sg).e,(sg).elen); } while (0)
 
 #define SG_DECL(sg) sparsegraph sg = {0,0,NULL,NULL,NULL,NULL,0,0,0,0}

-- 
Paul T. Darga - pdarga at umich.edu - http://www.eecs.umich.edu/~pdarga/
"When I gave food to the poor, they called me a saint. When I asked
why the poor were hungry, they called me a communist."
    -- Dom Helder Camara, Brazilian Bishop, Nobel Peace Prize nominee




More information about the Nauty mailing list