From 34df11597fda70205c7188ef58e7a463c5c52390 Mon Sep 17 00:00:00 2001 From: Andrew Stucky Date: Fri, 19 May 2023 16:27:06 -0400 Subject: [PATCH] fix: converts uint64 to uint32 for arm device capability. --- python/pyosdp_cp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/pyosdp_cp.c b/python/pyosdp_cp.c index 148ea4b5..48cf9f19 100644 --- a/python/pyosdp_cp.c +++ b/python/pyosdp_cp.c @@ -14,7 +14,7 @@ "@return PD status bitmask" static PyObject *pyosdp_cp_pd_status(pyosdp_cp_t *self, PyObject *args) { - uint64_t bitmask = 0; + uint32_t bitmask = 0; osdp_get_status_mask(self->ctx, (uint8_t *)&bitmask); @@ -27,7 +27,7 @@ static PyObject *pyosdp_cp_pd_status(pyosdp_cp_t *self, PyObject *args) "@return Secure Channel Status bitmask" static PyObject *pyosdp_cp_sc_status(pyosdp_cp_t *self, PyObject *args) { - uint64_t bitmask = 0; + uint32_t bitmask = 0; osdp_get_sc_status_mask(self->ctx, (uint8_t *)&bitmask);