From 84bf6840756c2aceb5ce01570723c32b59fe409a Mon Sep 17 00:00:00 2001 From: Dag Sverre Seljebotn Date: Thu, 10 Jul 2008 12:46:17 +0200 Subject: [PATCH] Typo in buffer --- Cython/Compiler/Buffer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/Buffer.py b/Cython/Compiler/Buffer.py index 8c0be457..49db82f5 100644 --- a/Cython/Compiler/Buffer.py +++ b/Cython/Compiler/Buffer.py @@ -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') { -- 2.26.2