diff options
author | Armin Rigo <arigo@tunes.org> | 2019-09-20 19:24:35 +0200 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2019-09-20 19:24:35 +0200 |
commit | 6ab4b9f56ddd82ae7214bea3ab344640b61c6cca (patch) | |
tree | 1c09dae4ec230d52d00be370cd49bdedd0414d6c /cffi | |
parent | bf8b794fbf1ea0b799b50dc9b4f84b8c6df682f2 (diff) | |
download | cffi-6ab4b9f56ddd82ae7214bea3ab344640b61c6cca.tar.gz |
Don't return a bool from __int__(), as it raises a (Pending?)DeprecationWarning
Diffstat (limited to 'cffi')
-rw-r--r-- | cffi/backend_ctypes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cffi/backend_ctypes.py b/cffi/backend_ctypes.py index 679ae05..e7956a7 100644 --- a/cffi/backend_ctypes.py +++ b/cffi/backend_ctypes.py @@ -403,7 +403,7 @@ class CTypesBackend(object): source = _cast_source_to_int(source) return cls(bool(source)) def __int__(self): - return self._value + return int(self._value) if kind == 'char': @classmethod |