[Pixelle-commit] SF.net SVN: pixelle:[256] trunk/pixelle/etc/Pixelle.g
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2009-02-20 04:55:50
|
Revision: 256
http://pixelle.svn.sourceforge.net/pixelle/?rev=256&view=rev
Author: dbrosius
Date: 2009-02-20 04:55:43 +0000 (Fri, 20 Feb 2009)
Log Message:
-----------
handle negative source inputs (do abs)
Modified Paths:
--------------
trunk/pixelle/etc/Pixelle.g
Modified: trunk/pixelle/etc/Pixelle.g
===================================================================
--- trunk/pixelle/etc/Pixelle.g 2009-02-19 04:15:22 UTC (rev 255)
+++ trunk/pixelle/etc/Pixelle.g 2009-02-20 04:55:43 UTC (rev 256)
@@ -309,8 +309,11 @@
{
if ($selector.text == null)
mv.visitInsn(Opcodes.ICONST_0);
- else
+ else
+ {
mv.visitInsn(Opcodes.D2I);
+ mv.visitMethodInsn(Opcodes.INVOKESTATIC, "java/lang/Math", "abs", "(I)I");
+ }
mv.visitVarInsn(Opcodes.ILOAD, 4);
mv.visitInsn(Opcodes.IREM);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|