ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@us.ibm.com
Subject Re: cvs commit: jakarta-ant/src/main/org/apache/tools/ant /taskdefs Cvs.java FixCRLF.java
Date Tue, 11 Jul 2000 11:34:16 GMT


> + if (tlength < 2 || (tlength % 2) != 0) {
> +   throw new BuildException("tablength must be a positive power of 2",

That only checks if tlength is even.  Try (tlength & (tlength-1)) == 0.

Or eliminate the power of two requirement entirely.

- Sam Ruby



Mime
View raw message