From: <fwi...@us...> - 2007-10-24 19:53:43
|
Revision: 3611 http://jython.svn.sourceforge.net/jython/?rev=3611&view=rev Author: fwierzbicki Date: 2007-10-24 12:53:41 -0700 (Wed, 24 Oct 2007) Log Message: ----------- bugfix for compiling print statements. Modified Paths: -------------- branches/asm_compiler/src/org/python/compiler/CodeCompiler.java Modified: branches/asm_compiler/src/org/python/compiler/CodeCompiler.java =================================================================== --- branches/asm_compiler/src/org/python/compiler/CodeCompiler.java 2007-10-17 11:17:03 UTC (rev 3610) +++ branches/asm_compiler/src/org/python/compiler/CodeCompiler.java 2007-10-24 19:53:41 UTC (rev 3611) @@ -442,6 +442,10 @@ setline(node); int tmp = -1; + if (node.dest != null) { + visit(node.dest); + tmp = storeTop(); + } if (node.values == null || node.values.length == 0) { if (node.dest != null) { mv.visitVarInsn(ALOAD, tmp); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |