src/lib/bbiRead.c 1.16

1.16 2009/11/14 00:11:32 kent
Making assumptions of bbiTotalSummary vs. version numbers a bit more explicit in response to Angie's feedback.
Index: src/lib/bbiRead.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/lib/bbiRead.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -b -B -U 4 -r1.15 -r1.16
--- src/lib/bbiRead.c	12 Nov 2009 23:15:51 -0000	1.15
+++ src/lib/bbiRead.c	14 Nov 2009 00:11:32 -0000	1.16
@@ -630,9 +629,11 @@
     res.maxVal = udcReadDouble(udc, isSwapped);
     res.sumData = udcReadDouble(udc, isSwapped);
     res.sumSquares = udcReadDouble(udc, isSwapped);
     }
-else
+else if (bbi->version == 1)
+    /* Require version 1 so as not to have to deal with compression.  Should not happen
+     * to have NULL totalSummaryOffset for non-empty version 2+ file anyway. */
     {
     /* Find most extreme zoom. */
     struct bbiZoomLevel *bestZoom = NULL, *zoom;
     bits32 bestReduction = 0;