Open infacc opened 11 months ago
Fixes #139. Implements @simon-staal's proposed solution:
The ZBarOrientation enum class specifies an UNKNOWN type as -1 here. However, when setting zbar_symbol_get_orientation, the c_uint type is passed here. Presumably if this was changed to c_int this would solve this issue?
UNKNOWN
-1
zbar_symbol_get_orientation
c_uint
c_int
The original zbar implementation defines zbar_orientation_t as enum with ZBAR_ORIENT_UNKNOWN = -1. Hence, the return type of zbar_symbol_get_orientation is signed.
zbar_orientation_t
ZBAR_ORIENT_UNKNOWN = -1
Fixes #139. Implements @simon-staal's proposed solution:
The original zbar implementation defines
zbar_orientation_t
as enum withZBAR_ORIENT_UNKNOWN = -1
. Hence, the return type ofzbar_symbol_get_orientation
is signed.