fixed bitmask off by 1 error

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352265 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew C. Oliver 2002-03-23 16:44:37 +00:00
parent e18843de6d
commit 177471f853
1 changed files with 1 additions and 0 deletions

View File

@ -162,6 +162,7 @@ public class RecordUtil
public static String getMask(int bit)
{
if (bit > 1) bit--;
int mask = (int)Math.pow(2, bit);
return "0x" + Integer.toHexString(mask);