Typo in buffer
authorDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Thu, 10 Jul 2008 10:46:17 +0000 (12:46 +0200)
committerDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Thu, 10 Jul 2008 10:46:17 +0000 (12:46 +0200)
Cython/Compiler/Buffer.py

index 8c0be457720998800fa729c0936c3d9f4031f787..49db82f578d47616eb3b93dd979982778fd25804 100644 (file)
@@ -284,7 +284,7 @@ class BufferTransform(CythonTransform):
         funcnode = self.ts_item_checkers.get(dtype)
         if funcnode is None:
             char = dtype.typestring
-            if char is not None and len(char) > 1:
+            if char is not None and len(char) == 1:
                 # Can use direct comparison
                 funcnode = self.new_ts_func("natitem_%s" % self.mangle_dtype_name(dtype), """\
   if (*ts != '%s') {