Skip to content

Commit

Permalink
Create minivect function type for function calls
Browse files Browse the repository at this point in the history
  • Loading branch information
markflorisson committed Sep 16, 2012
1 parent 4ae867f commit bdaeea5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Cython/Compiler/Vector.py
Expand Up @@ -1550,7 +1550,10 @@ def visit_SimpleCallNode(self, node, minitype):
# normal function argument, create partial function
miniargs.append(self.register_operand(arg))

minifunc = b.funcname(minitype, node.function.entry.cname)
arg_types = [arg.type for arg in miniargs]
func_type = minitypes.FunctionType(return_type=minitype,
arg_types=arg_types)
minifunc = b.funcname(func_type, node.function.entry.cname)
return b.funccall(minifunc, miniargs)

@elemental_dispatcher
Expand Down
1 change: 0 additions & 1 deletion Cython/minivect
Submodule minivect deleted from 5f3776
1 change: 1 addition & 0 deletions Cython/minivect

0 comments on commit bdaeea5

Please sign in to comment.