src/hg/lib/customFactory.c 1.125
1.125 2010/06/01 20:35:36 galt
cannot use char which is 1 byte to represent EOF, must use int
Index: src/hg/lib/customFactory.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/customFactory.c,v
retrieving revision 1.124
retrieving revision 1.125
diff -b -B -U 4 -r1.124 -r1.125
--- src/hg/lib/customFactory.c 11 May 2010 01:43:29 -0000 1.124
+++ src/hg/lib/customFactory.c 1 Jun 2010 20:35:36 -0000 1.125
@@ -1317,9 +1317,9 @@
/* Load ascii file into database via pipeline. */
struct pipeline *dataPipe = wigLoaderPipe(track);
FILE *in = mustOpen(wigAscii, "r");
FILE *out = pipelineFile(dataPipe);
- char c;
+ int c;
int fputcErr = 0;
unlink(wigAscii);/* stays open, disappears when close or pipe fail */
while ((c = fgetc(in)) != EOF && fputcErr != EOF)