src/utils/bigWigSummary/bigWigSummary.c 1.10

1.10 2009/06/09 17:42:33 markd
fixed non-portable code
Index: src/utils/bigWigSummary/bigWigSummary.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/bigWigSummary/bigWigSummary.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -b -B -U 4 -r1.9 -r1.10
--- src/utils/bigWigSummary/bigWigSummary.c	2 Feb 2009 06:05:52 -0000	1.9
+++ src/utils/bigWigSummary/bigWigSummary.c	9 Jun 2009 17:42:33 -0000	1.10
@@ -37,9 +37,9 @@
 void bigWigSummary(char *bigWigFile, char *chrom, int start, int end, int dataPoints)
 /* bigWigSummary - Extract summary information from a bigWig 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;