aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew C. Oliver <acoliver@apache.org>2002-03-23 16:44:37 +0000
committerAndrew C. Oliver <acoliver@apache.org>2002-03-23 16:44:37 +0000
commit177471f85345b4ac2646166ca4a467217edf5bf4 (patch)
tree694213e2da720771a14d8f014caa24682e221a34 /src
parente18843de6d53ec2aa327ec00077fb3f3c64b6615 (diff)
downloadpoi-177471f85345b4ac2646166ca4a467217edf5bf4.tar.gz
poi-177471f85345b4ac2646166ca4a467217edf5bf4.zip
fixed bitmask off by 1 error
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352265 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/scratchpad/src/org/apache/poi/generator/RecordUtil.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/scratchpad/src/org/apache/poi/generator/RecordUtil.java b/src/scratchpad/src/org/apache/poi/generator/RecordUtil.java
index caebde7513..4ccb49b26e 100644
--- a/src/scratchpad/src/org/apache/poi/generator/RecordUtil.java
+++ b/src/scratchpad/src/org/apache/poi/generator/RecordUtil.java
@@ -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);