diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2023-03-21 14:03:15 +0100 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2023-09-25 09:43:37 +0200 |
| commit | 01edc951094822b1bee98ae6ddd3930d16b1bfe2 (patch) | |
| tree | 36229d2f200c9b60504ef01a923c720d1999627f /wrappers/python/eduvpn_common | |
| parent | 6017b58600910e83e6177044e4e69b9ff556a70c (diff) | |
Exports + Python: Compare booleans with != 0 instead of == 1
Reported by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'wrappers/python/eduvpn_common')
| -rw-r--r-- | wrappers/python/eduvpn_common/types.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wrappers/python/eduvpn_common/types.py b/wrappers/python/eduvpn_common/types.py index ea5bbd2..4e54ad3 100644 --- a/wrappers/python/eduvpn_common/types.py +++ b/wrappers/python/eduvpn_common/types.py @@ -107,4 +107,4 @@ def get_bool(lib: CDLL, boolInt: c_int) -> bool: :return: The boolean converted to Python :rtype: bool """ - return boolInt == 1 + return boolInt != 0 |
