src/lib/bbiWrite.c 1.13

1.13 2010/04/06 23:06:42 kent
Fixing max field in second and higher level zooms of bedGraphToBigWig and bedToBigBed.
Index: src/lib/bbiWrite.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/lib/bbiWrite.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -b -B -U 4 -r1.12 -r1.13
--- src/lib/bbiWrite.c	30 Jan 2010 03:26:32 -0000	1.12
+++ src/lib/bbiWrite.c	6 Apr 2010 23:06:42 -0000	1.13
@@ -541,9 +541,9 @@
     {
     twiceReduced->end = sum->end;
     twiceReduced->validCount += sum->validCount;
     if (sum->minVal < twiceReduced->minVal) twiceReduced->minVal = sum->minVal;
-    if (sum->maxVal < twiceReduced->maxVal) twiceReduced->maxVal = sum->maxVal;
+    if (sum->maxVal > twiceReduced->maxVal) twiceReduced->maxVal = sum->maxVal;
     twiceReduced->sumData += sum->sumData;
     twiceReduced->sumSquares += sum->sumSquares;
     }
 }