2bf08981dfb1f76cbcceaf9d3f60039d7f51dcf1 galt Tue Apr 24 10:53:20 2012 -0700 fixes for 32-bit compile diff --git src/lib/linefile.c src/lib/linefile.c index dbc7d55..675e90a 100644 --- src/lib/linefile.c +++ src/lib/linefile.c @@ -964,31 +964,31 @@ * and 3 for (-) sign in unsigned number. * Error messages if any are written into the provided buffer. * Pass NULL val if you only want validation. * Use noNeg if negative values are not allowed despite the type being signed, * returns 4. */ { unsigned long long res = 0, oldRes = 0; boolean isMinus = FALSE; if ((byteCount != 1) && (byteCount != 2) && (byteCount != 4) && (byteCount != 8)) errAbort("Unexpected error: Invalid byte count for integer size in lineFileCheckAllIntsNoAbort, expected 1 2 4 or 8, got %d.", byteCount); -unsigned long long limit = 0xFFFFFFFFFFFFFFFF >> (8*(8-byteCount)); +unsigned long long limit = 0xFFFFFFFFFFFFFFFFULL >> (8*(8-byteCount)); if (isSigned) limit >>= 1; char *p, *p0 = s; if (*p0 == '-') { if (isSigned) { if (noNeg) { safef(errMsg, errMsgSize, "Negative value not allowed"); return 4; }