From: Dag Sverre Seljebotn Date: Thu, 10 Jul 2008 10:46:17 +0000 (+0200) Subject: Typo in buffer X-Git-Tag: 0.9.8.1~49^2~102 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=84bf6840756c2aceb5ce01570723c32b59fe409a;p=cython.git Typo in buffer --- 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') {