Fix compile time division.
authorRobert Bradshaw <robertwb@math.washington.edu>
Thu, 3 Mar 2011 19:07:23 +0000 (11:07 -0800)
committerRobert Bradshaw <robertwb@math.washington.edu>
Thu, 3 Mar 2011 19:07:23 +0000 (11:07 -0800)
Cython/Compiler/ExprNodes.py

index c965251024ea01428193ad5cc3c563a2a6ea793a..1fe85384318c802822279342798c20a412688869 100755 (executable)
@@ -5992,7 +5992,7 @@ class DivNode(NumBinopNode):
         operand2 = self.operand2.compile_time_value(denv)
         try:
             func = self.find_compile_time_binary_operator(
-                self, operand1, operand2)
+                operand1, operand2)
             return func(operand1, operand2)
         except Exception, e:
             self.compile_time_value_error(e)