Fix specialization for varargs function signatures.
authorRobert Bradshaw <robertwb@math.washington.edu>
Fri, 5 Oct 2012 23:01:33 +0000 (16:01 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Fri, 5 Oct 2012 23:01:33 +0000 (16:01 -0700)
Cython/Compiler/PyrexTypes.py

index e56018f..74f53f1 100755 (executable)
@@ -2644,7 +2644,7 @@ class CFuncType(CType):
 
         result = CFuncType(self.return_type.specialize(values),
                            [arg.specialize(values) for arg in self.args],
-                           has_varargs = 0,
+                           has_varargs = self.has_varargs,
                            exception_value = self.exception_value,
                            exception_check = self.exception_check,
                            calling_convention = self.calling_convention,