Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86e9deb commit 5368396Copy full SHA for 5368396
2 files changed
Lib/ctypes/test/test_pointers.py
@@ -24,7 +24,10 @@ class A(POINTER(c_ulong)):
24
def test_pass_pointers(self):
25
dll = CDLL(_ctypes_test.__file__)
26
func = dll._testfunc_p_p
27
- func.restype = c_long
+ if sizeof(c_longlong) == sizeof(c_void_p):
28
+ func.restype = c_longlong
29
+ else:
30
+ func.restype = c_long
31
32
i = c_int(12345678)
33
## func.argtypes = (POINTER(c_int),)
Lib/ctypes/test/test_prototypes.py
@@ -69,7 +69,10 @@ def test_paramflags(self):
69
70
def test_int_pointer_arg(self):
71
func = testdll._testfunc_p_p
72
73
74
75
76
self.assertEqual(0, func(0))
77
78
ci = c_int(0)
0 commit comments