|
4 | 4 | .. versionadded:: 0.5.0 |
5 | 5 | """ |
6 | 6 | from ctypes import (POINTER, c_bool, c_char_p, c_double, c_int, c_size_t, |
7 | | - c_ubyte, c_uint, c_ulong, c_ulonglong, c_void_p) |
| 7 | + c_ubyte, c_uint, c_ulong, c_void_p) |
8 | 8 |
|
9 | | -from wand.cdefs.wandtypes import c_ssize_t |
| 9 | +from wand.cdefs.wandtypes import c_ssize_t, c_magick_size_t |
10 | 10 |
|
11 | 11 | __all__ = ('load',) |
12 | 12 |
|
@@ -91,9 +91,9 @@ def load(lib, IM_VERSION): |
91 | 91 | lib.MagickGetPointsize.restype = c_double |
92 | 92 | lib.MagickGetQuantumRange.argtypes = [POINTER(c_size_t)] |
93 | 93 | lib.MagickGetResource.argtypes = [c_int] |
94 | | - lib.MagickGetResource.restype = c_ulonglong |
| 94 | + lib.MagickGetResource.restype = c_magick_size_t |
95 | 95 | lib.MagickGetResourceLimit.argtypes = [c_int] |
96 | | - lib.MagickGetResourceLimit.restype = c_ulonglong |
| 96 | + lib.MagickGetResourceLimit.restype = c_magick_size_t |
97 | 97 | lib.MagickGetSamplingFactors.argtypes = [c_void_p, POINTER(c_size_t)] |
98 | 98 | lib.MagickGetSamplingFactors.restype = POINTER(c_double) |
99 | 99 | lib.MagickGetSize.argtypes = [c_void_p, POINTER(c_uint), POINTER(c_uint)] |
@@ -172,7 +172,7 @@ def load(lib, IM_VERSION): |
172 | 172 | lib.MagickSetPointsize.restype = c_bool |
173 | 173 | lib.MagickSetResolution.argtypes = [c_void_p, c_double, c_double] |
174 | 174 | lib.MagickSetResolution.restype = c_bool |
175 | | - lib.MagickSetResourceLimit.argtypes = [c_int, c_ulonglong] |
| 175 | + lib.MagickSetResourceLimit.argtypes = [c_int, c_magick_size_t] |
176 | 176 | lib.MagickSetResourceLimit.restype = c_bool |
177 | 177 | lib.MagickSetSamplingFactors.argtypes = [ |
178 | 178 | c_void_p, c_size_t, POINTER(c_double) |
|
0 commit comments