From 345009e0003df4af5ba33150328f56ba4b207440 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Mon, 8 Nov 2010 10:20:01 +0100 Subject: [PATCH] reverted last change - generates problematic C code --- Cython/Compiler/Symtab.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Cython/Compiler/Symtab.py b/Cython/Compiler/Symtab.py index 92276775..c6062ec1 100644 --- a/Cython/Compiler/Symtab.py +++ b/Cython/Compiler/Symtab.py @@ -1559,8 +1559,7 @@ class CClassScope(ClassScope): error(pos, "'%s' already defined" % name) #print "CClassScope.declare_cfunction: checking signature" ### if type.same_c_signature_as(entry.type, as_cmethod = 1) and type.nogil == entry.type.nogil: - # may still need to adjust the type of 'self' => simply override the type - entry.type = type + pass elif type.compatible_signature_with(entry.type, as_cmethod = 1) and type.nogil == entry.type.nogil: entry = self.add_cfunction(name, type, pos, cname or name, visibility='ignore', modifiers=modifiers) defining = 1 -- 2.26.2