fullRuntime/src/sc/util/zip/ZipUtil.java
static BigInteger longToBig(long l) {
        if (l < Integer.MIN_VALUE) {
            throw new IllegalArgumentException("Negative longs < -2^31 not permitted: [" + l + "]");
        } else if (l < 0 && l >= Integer.MIN_VALUE) {
            // If someone passes in a -2, they probably mean 4294967294
            // (For example, Unix UID/GID's are 32 bit unsigned.)
            l = ZipUtil.adjustToLong((int) l);
        }
        return BigInteger.valueOf(l);
    }
/**
     * <p>
     * Converts a long into a BigInteger.  Negative numbers between -1 and
     * -2^31 are treated as unsigned 32 bit (e.g., positive) integers.
     * Negative numbers below -2^31 cause an IllegalArgumentException
     * to be thrown.
     * </p>
     *
     * @param l long to convert to BigInteger.
     * @return BigInteger representation of the provided long.
     */

Converts a long into a BigInteger.  Negative numbers between -1 and
-2^31 are treated as unsigned 32 bit  integers.
Negative numbers below -2^31 cause an IllegalArgumentException
to be thrown.

@param l long to convert to BigInteger.
@return BigInteger representation of the provided long.
Converts a long into a BigInteger . Negative numbers between - 1 and - 2^31 are treated as unsigned 32 bit integers . Negative numbers below - 2^31 cause an IllegalArgumentException to be thrown . @param l long to convert to BigInteger . @return BigInteger representation of the provided long .
static BigInteger longToBig(long l) {
        if (l < Integer.MIN_VALUE) {
            throw new IllegalArgumentException("Negative longs < -2^31 not permitted: [" + l + "]");
        } else if (l < 0 && l >= Integer.MIN_VALUE) {
            l = ZipUtil.adjustToLong((int) l);
        }
        return BigInteger.valueOf(l);
    }
static BigInteger longToBig ( long l ) { if ( l < Integer . MIN_VALUE ) { throw new IllegalArgumentException ( "Negative longs < -2^31 not permitted: [" + l + "]" ) ; } else if ( l < 0 && l >= Integer . MIN_VALUE ) { l = ZipUtil . adjustToLong ( ( int ) l ) ; } return BigInteger . valueOf ( l ) ; }
<p>
 Converts a long into a BigInteger.
<p > Converts a long into a BigInteger .
// If someone passes in a -2, they probably mean 4294967294 // (For example, Unix UID/GID's are 32 bit unsigned.)