src/hg/lib/geneGraph.c 1.25

1.25 2009/08/13 03:08:30 markd
fixed misuse of AllocVar macro detected by gcc 4.5
Index: src/hg/lib/geneGraph.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/geneGraph.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -b -B -U 4 -r1.24 -r1.25
--- src/hg/lib/geneGraph.c	13 Feb 2007 19:42:54 -0000	1.24
+++ src/hg/lib/geneGraph.c	13 Aug 2009 03:08:30 -0000	1.25
@@ -238,9 +238,9 @@
 ag->vertexCount = usedVertexCount;
 ag->vTypes = AllocArray(vTypes, usedVertexCount);
 ag->vPositions = AllocArray(vPositions, usedVertexCount);
 ag->mrnaRefCount = gg->mrnaRefCount;
-ag->mrnaRefs = AllocArray(ag->mrnaRefs, gg->mrnaRefCount);
+AllocArray(ag->mrnaRefs, gg->mrnaRefCount);
 for(i=0; i < gg->mrnaRefCount; i++)
     {
     ag->mrnaRefs[i] = cloneString(gg->mrnaRefs[i]);
     }
@@ -402,9 +402,9 @@
    will be stored as an slInt list keyed by the accessions. */
 {
 int i;
 int mrnaCount = gg->mrnaRefCount;
-gg->mrnaTissues = AllocArray(gg->mrnaTissues, mrnaCount);
+AllocArray(gg->mrnaTissues, mrnaCount);
 gg->mrnaLibs = needMem(sizeof(int)*mrnaCount);
 //gg->mrnaLibs = AllocArray(gg->mrnaLibs, mrnaCount);
 for(i=0; i< mrnaCount; ++i)
     {
@@ -606,9 +606,9 @@
 	    int count =0;
 	    /* Store the mrna evidence. */
 	    AllocVar(e);
 	    e->evCount = slCount(gg->evidence[i][j]);
-	    e->mrnaIds = AllocArray(e->mrnaIds, e->evCount);
+	    AllocArray(e->mrnaIds, e->evCount);
 	    for(ev = gg->evidence[i][j]; ev != NULL; ev = ev->next)
 		{
 		assert(count < e->evCount);
 		e->mrnaIds[count++] = ev->id;