From 84143ba86ca5c3f91d424331daa8100470e53669 Mon Sep 17 00:00:00 2001 From: Tomas Mizera Date: Tue, 27 Jan 2026 13:30:46 +0100 Subject: [PATCH] Fix crash on arm64 architectures due to incomplete ctypes definition --- pygeodiff/geodifflib.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pygeodiff/geodifflib.py b/pygeodiff/geodifflib.py index 2e2d9d4..df0e57a 100644 --- a/pygeodiff/geodifflib.py +++ b/pygeodiff/geodifflib.py @@ -142,7 +142,7 @@ def _register_functions(self): self._V_get_int = self.lib.GEODIFF_V_getInt self._V_get_int.argtypes = [ctypes.c_void_p, ctypes.c_void_p] - self._V_get_int.restype = ctypes.c_int + self._V_get_int.restype = ctypes.c_int64 self._V_get_double = self.lib.GEODIFF_V_getDouble self._V_get_double.argtypes = [ctypes.c_void_p, ctypes.c_void_p] @@ -366,7 +366,7 @@ def apply_changeset(self, base, changeset): def list_changes(self, changeset, result): func = self.lib.GEODIFF_listChanges - func.argtypes = [ctypes.c_void_p, ctypes.c_char_p] + func.argtypes = [ctypes.c_void_p, ctypes.c_char_p, ctypes.c_char_p] func.restype = ctypes.c_int # create byte objects from the strings @@ -377,7 +377,7 @@ def list_changes(self, changeset, result): def list_changes_summary(self, changeset, result): func = self.lib.GEODIFF_listChangesSummary - func.argtypes = [ctypes.c_void_p, ctypes.c_char_p] + func.argtypes = [ctypes.c_void_p, ctypes.c_char_p, ctypes.c_char_p] func.restype = ctypes.c_int # create byte objects from the strings