]> source.dussan.org Git - poi.git/commitdiff
fixed a simple bug (25781)
authorSaid Ryan Ackley <sackley@apache.org>
Thu, 8 Jan 2004 11:09:37 +0000 (11:09 +0000)
committerSaid Ryan Ackley <sackley@apache.org>
Thu, 8 Jan 2004 11:09:37 +0000 (11:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353484 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hwpf/sprm/SprmUtils.java

index f83b810c93e6b4322089804bdd291830a6e7771b..11bb206a117a030b4c735b0c970672541a4305ec 100644 (file)
@@ -79,7 +79,7 @@ public class SprmUtils
 
   public static int addSprm(short instruction, int param, byte[] varParam, List list)
   {
-    int type = instruction & 0xe000;
+    int type = (instruction & 0xe000) >> 13;
 
     byte[] sprm = null;
     switch(type)