Commits

Armin Rigo  committed 8404e6d

Fix for test_math.

  • Participants
  • Parent commits a6249df

Comments (0)

Files changed (1)

File ffi/backend_ctypes.py

     def __init__(self, cdll):
         self.cdll = cdll
 
-    def load_function(self, name, args, result):
+    def load_function(self, name, bargs, bresult):
         func = getattr(self.cdll, name)
-        func.argtypes = args
-        func.restype = result
+        func.argtypes = [barg._ctype for barg in bargs]
+        func.restype = bresult._ctype
         return func