From 01210f488410a23838c54fcc22297cf08ac7de66 Mon Sep 17 00:00:00 2001 From: Phillip Hellewell Date: Wed, 14 Feb 2024 00:43:56 -0700 Subject: [PATCH] Fix #53: incompatible pointer types in pyaff.c --- pyaff/afflib.pxd | 3 ++- pyaff/pyaff.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pyaff/afflib.pxd b/pyaff/afflib.pxd index 850765c..b6cce11 100644 --- a/pyaff/afflib.pxd +++ b/pyaff/afflib.pxd @@ -2,7 +2,8 @@ from libc.stdint cimport int64_t, uint32_t, uint64_t from posix.fcntl cimport O_RDONLY cdef extern from "afflib/afflib.h": - struct AFFILE + struct _AFFILE + ctypedef _AFFILE AFFILE enum: AF_MAX_NAME_LEN diff --git a/pyaff/pyaff.c b/pyaff/pyaff.c index 99544f6..8ba33db 100644 --- a/pyaff/pyaff.c +++ b/pyaff/pyaff.c @@ -1478,7 +1478,7 @@ struct __pyx_obj_5pyaff_affile; */ struct __pyx_obj_5pyaff_affile { PyObject_HEAD - struct AFFILE *af; + AFFILE *af; int64_t size; };