Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 93208 invoked from network); 11 Jul 2000 11:37:06 -0000 Received: from e22.nc.us.ibm.com (32.97.136.228) by locus.apache.org with SMTP; 11 Jul 2000 11:37:06 -0000 Received: from southrelay02.raleigh.ibm.com (southrelay02.raleigh.ibm.com [9.37.3.209]) by e22.nc.us.ibm.com (8.9.3/8.9.3) with ESMTP id HAA22014 for ; Tue, 11 Jul 2000 07:15:13 -0500 From: rubys@us.ibm.com Received: from d54mta04.raleigh.ibm.com (d54mta04.raleigh.ibm.com [9.67.228.36]) by southrelay02.raleigh.ibm.com (8.8.8m3/NCO v4.9) with SMTP id HAA27296 for ; Tue, 11 Jul 2000 07:37:03 -0400 Received: by d54mta04.raleigh.ibm.com(Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) id 85256919.003FCFC4 ; Tue, 11 Jul 2000 07:36:59 -0400 X-Lotus-FromDomain: IBMUS To: ant-dev@jakarta.apache.org Message-ID: <85256919.003FCE10.00@d54mta04.raleigh.ibm.com> Date: Tue, 11 Jul 2000 07:34:16 -0400 Subject: Re: cvs commit: jakarta-ant/src/main/org/apache/tools/ant /taskdefs Cvs.java FixCRLF.java Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline > + 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