goToMain / libosdp

Implementation of IEC 60839-11-5 OSDP (Open Supervised Device Protocol); provides a C library with support for C++, Rust and Python3
https://libosdp.sidcha.dev
Apache License 2.0
130 stars 69 forks source link

Python Bindings: 32bit ARM capability w/ bitmask #117

Closed Stuckya closed 1 year ago

Stuckya commented 1 year ago

While deploying my application to a 32bit ARM device, I found the bitmask logic broke when using the python bindings.

After investigation I saw the usage of uint64_t. After converting to uint32_t, the bitmask logic now works across both 32bit and 64bit architectures.