summaryrefslogtreecommitdiff
path: root/magic.py
diff options
context:
space:
mode:
authorAdam Hupp <adam@hupp.org>2018-09-01 16:34:13 -0700
committerAdam Hupp <adam@hupp.org>2018-09-01 16:34:13 -0700
commit33528682227836c6375c848bee8c767e42641fd8 (patch)
tree6c9897e68c8880b92e8e6848083d3128809d75ff /magic.py
parent79eed130562212190140f6192b296d1142cb762f (diff)
downloadpython-magic-fix-ci.tar.gz
Use INDIR_MAX rather than BYTES_MAX in tests since the latter wasn'tfix-ci
supported until recently. Also, return .value from the ctypes wrapper so callers aren't required to.
Diffstat (limited to 'magic.py')
-rw-r--r--magic.py2
1 files changed, 1 insertions, 1 deletions
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