src/utils/bigBedSummary/bigBedSummary.c 1.6

1.6 2009/06/09 17:41:28 markd
fixed non-portable code
Index: src/utils/bigBedSummary/bigBedSummary.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/bigBedSummary/bigBedSummary.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -b -B -U 4 -r1.5 -r1.6
--- src/utils/bigBedSummary/bigBedSummary.c	17 Apr 2009 20:54:35 -0000	1.5
+++ src/utils/bigBedSummary/bigBedSummary.c	9 Jun 2009 17:41:28 -0000	1.6
@@ -41,9 +41,9 @@
 void bigBedSummary(char *fileName, char *chrom, int start, int end, int dataPoints)
 /* bigBedSummary - Extract summary information from a bigBed file.. */
 {
 /* Make up values array initialized to not-a-number. */
-double nan0 = nan("");
+double nan0 = strtod("NaN", NULL);
 double summaryValues[dataPoints];
 int i;
 for (i=0; i<dataPoints; ++i)
     summaryValues[i] = nan0;