Commit 1a51b137 authored by Stefan Behnel's avatar Stefan Behnel

reduce code overhead for fused cpdef signature matching code

parent 532bb1ff
......@@ -576,10 +576,14 @@ class FusedCFuncDefNode(StatListNode):
u"""
candidates = []
for sig in signatures:
match_found = filter(None, dest_sig)
match_found = False
for src_type, dst_type in zip(sig.strip('()').split(', '), dest_sig):
if dst_type is not None and match_found:
match_found = src_type == dst_type
if dst_type is not None:
if src_type == dst_type:
match_found = True
else:
match_found = False
break
if match_found:
candidates.append(sig)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment