diff options
author | Robert Bradshaw <robertwb@google.com> | 2016-12-07 17:49:34 -0800 |
---|---|---|
committer | Robert Bradshaw <robertwb@google.com> | 2016-12-07 17:49:34 -0800 |
commit | 9a688de2471860d794acdb9323f56656e821fa5d (patch) | |
tree | 3f27ad70c3bf728b4050f92af4bb0aa335edb067 | |
parent | 995d565e3f289d0e3a038a06d165cd5ac006b754 (diff) | |
download | cython-9a688de2471860d794acdb9323f56656e821fa5d.tar.gz |
cleanup
-rw-r--r-- | Cython/Compiler/ExprNodes.py | 3 | ||||
-rw-r--r-- | Cython/Compiler/TypeInference.py | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index b7c7e1a36..063adbc7c 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -4958,13 +4958,12 @@ class CallNode(ExprNode): alternatives = self.function.entry.all_alternatives() arg_types = [arg.infer_type(env) for arg in self.args] func_entry = PyrexTypes.best_match( - arg_types, alternatives, self.pos, env) + arg_types, alternatives, None, env) if func_entry: func_type = func_entry.type if func_type.is_ptr: func_type = func_type.base_type return func_type.return_type - return func_type.return_type elif func_type is type_type: if function.is_name and function.entry and function.entry.type: diff --git a/Cython/Compiler/TypeInference.py b/Cython/Compiler/TypeInference.py index 2a6fcafa2..c57c15d43 100644 --- a/Cython/Compiler/TypeInference.py +++ b/Cython/Compiler/TypeInference.py @@ -475,7 +475,6 @@ class SimpleAssignmentTypeInferer(object): for assmt in entry.cf_assignments] new_type = spanning_type(types, entry.might_overflow, entry.pos, scope) if new_type != entry.type: - print "FOUND", entry, entry.type, new_type, type(new_type) self.set_entry_type(entry, new_type) dirty = True return dirty |