src/shortReads/bwtMake/bwtMake.c 1.4

1.4 2009/11/24 15:49:14 kent
Tweaking size check to compile under 32 bit Mac OS.
Index: src/shortReads/bwtMake/bwtMake.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/shortReads/bwtMake/bwtMake.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -b -B -U 4 -r1.3 -r1.4
--- src/shortReads/bwtMake/bwtMake.c	7 Nov 2008 23:54:52 -0000	1.3
+++ src/shortReads/bwtMake/bwtMake.c	24 Nov 2009 15:49:14 -0000	1.4
@@ -56,10 +56,11 @@
 /* This makes the bwt in a straightforward but inefficient way. */
 {
 size_t inSize;
 readInGulp(in, &inBuf, &inSize);
-if (inSize >= 1LL<<32LL)
-   errAbort("%s is too big, (%zd bytes), can only handle up to %lld",  in, inSize, (1LL<<32LL));
+long long longSize = inSize;
+if (longSize >= (1LL << 32LL))
+    errAbort("In is too big, can only handle up to 4 Gig");
 bits32 *offsets;
 bits32 i, size=inSize+1;
 AllocArray(offsets, size);
 for (i=0; i<size; ++i)