src/hg/bedItemOverlapCount/bedItemOverlapCount.c 1.16
1.16 2009/09/25 23:17:20 braney
oops, default should be to use 32 bits
Index: src/hg/bedItemOverlapCount/bedItemOverlapCount.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/bedItemOverlapCount/bedItemOverlapCount.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -b -B -U 4 -r1.15 -r1.16
--- src/hg/bedItemOverlapCount/bedItemOverlapCount.c 25 Sep 2009 23:08:41 -0000 1.15
+++ src/hg/bedItemOverlapCount/bedItemOverlapCount.c 25 Sep 2009 23:17:20 -0000 1.16
@@ -15,9 +15,9 @@
static char const rcsid[] = "$Id$";
/* define unitSize to be a larger storage class if your counts
* are overflowing. */
-typedef unsigned long unitSize;
+typedef unsigned int unitSize;
#define MAXCOUNT (unitSize)~0
#define MAXMESSAGE "Overflow of overlap counts. Max is %lu. Recompile with bigger unitSize or use -max option"
#define INCWOVERFLOW(x) if(counts[x] == MAXCOUNT) {if(!doMax) errAbort(MAXMESSAGE,(unsigned long)MAXCOUNT);} else counts[x]++