From e7b1af043f84c9a2593cf924fc2a72c1dd088506 Mon Sep 17 00:00:00 2001 From: Mark Wiebe Date: Thu, 30 Aug 2012 18:13:03 -0700 Subject: [PATCH] Use the function's calling convention when doing the call in cbuilder --- builder.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/builder.py b/builder.py index 7aa5d93..daad0c4 100644 --- a/builder.py +++ b/builder.py @@ -1155,6 +1155,8 @@ class CFunc(CValue): "argument %d mismatch: %s != %s" % (self.function.name, i, exp, got.type)) res = self.parent.builder.call(self.function, arg_values) + if hasattr(self.function, 'calling_convention'): + res.calling_convention = self.function.calling_convention return CTemp(self.parent, res) @property