From 33528682227836c6375c848bee8c767e42641fd8 Mon Sep 17 00:00:00 2001 From: Adam Hupp Date: Sat, 1 Sep 2018 16:34:13 -0700 Subject: Use INDIR_MAX rather than BYTES_MAX in tests since the latter wasn't supported until recently. Also, return .value from the ctypes wrapper so callers aren't required to. --- magic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'magic.py') diff --git a/magic.py b/magic.py index a4729e6..73f3a1a 100644 --- a/magic.py +++ b/magic.py @@ -300,7 +300,7 @@ _magic_getparam.errcheck = errorcheck_negative_one def magic_getparam(cookie, param): val = c_size_t() _magic_getparam(cookie, param, byref(val)) - return val + return val.value MAGIC_NONE = 0x000000 # No flags MAGIC_DEBUG = 0x000001 # Turn on debugging -- cgit v1.2.1