mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2025-01-07 11:20:47 +03:00
Fix wrong return type for _yk_errno_location.
This commit is contained in:
parent
720bebe0dd
commit
1fa728ebf0
@ -59,7 +59,7 @@ SLOTS = [
|
||||
|
||||
YK_KEY = type('YK_KEY', (Structure,), {})
|
||||
|
||||
_yk_errno_location = define('_yk_errno_location', [], c_int)
|
||||
_yk_errno_location = define('_yk_errno_location', [], POINTER(c_int))
|
||||
yk_init = define('yk_init', [], bool)
|
||||
yk_release = define('yk_release', [], bool)
|
||||
ykpers_check_version = define('ykpers_check_version', [c_char_p], c_char_p)
|
||||
@ -81,7 +81,7 @@ ykpers_version = ykpers_check_version(None)
|
||||
|
||||
|
||||
def yk_get_errno():
|
||||
return cast(_yk_errno_location(), POINTER(c_int)).contents.value
|
||||
return _yk_errno_location().contents.value
|
||||
|
||||
|
||||
class YkWrapper(object):
|
||||
|
Loading…
Reference in New Issue
Block a user