jakarta-bcel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject svn commit: r509457 - /jakarta/bcel/trunk/src/main/java/org/apache/bcel/generic/InstructionFactory.java
Date Tue, 20 Feb 2007 08:29:08 GMT
Author: dbrosius
Date: Tue Feb 20 00:29:08 2007
New Revision: 509457

URL: http://svn.apache.org/viewvc?view=rev&rev=509457
Log:
Bug 41648 : InstructionFactory missing % operator for Float, Double

Fix by Charlie Nolan 

Modified:
    jakarta/bcel/trunk/src/main/java/org/apache/bcel/generic/InstructionFactory.java

Modified: jakarta/bcel/trunk/src/main/java/org/apache/bcel/generic/InstructionFactory.java
URL: http://svn.apache.org/viewvc/jakarta/bcel/trunk/src/main/java/org/apache/bcel/generic/InstructionFactory.java?view=diff&rev=509457&r1=509456&r2=509457
==============================================================================
--- jakarta/bcel/trunk/src/main/java/org/apache/bcel/generic/InstructionFactory.java (original)
+++ jakarta/bcel/trunk/src/main/java/org/apache/bcel/generic/InstructionFactory.java Tue Feb
20 00:29:08 2007
@@ -352,6 +352,8 @@
                 return FMUL;
             case '/':
                 return FDIV;
+            case '%':
+            	return FREM;
             default:
                 throw new RuntimeException("Invalid operand " + op);
         }
@@ -368,6 +370,8 @@
                 return DMUL;
             case '/':
                 return DDIV;
+            case '%':
+            	return DREM;
             default:
                 throw new RuntimeException("Invalid operand " + op);
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-dev-help@jakarta.apache.org


Mime
View raw message