Minor fix in indexing test
authorRobert Bradshaw <robertwb@math.washington.edu>
Thu, 29 May 2008 18:42:11 +0000 (11:42 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Thu, 29 May 2008 18:42:11 +0000 (11:42 -0700)
Cython/Compiler/ExprNodes.py

index b12a80f27bcb803de5dac663fb68ee2883caf824..5446b29e8544707a8b4e240b4286f700560167be 100644 (file)
@@ -1295,7 +1295,7 @@ class IndexNode(ExprNode):
             if self.original_index_type.signed:
                 return ", 0"
             else:
-                return ", sizeof(Py_ssize_t) >= sizeof(%s)" % self.original_index_type.declaration_code("")
+                return ", sizeof(Py_ssize_t) <= sizeof(%s)" % self.original_index_type.declaration_code("")
         else:
             return ""