diff options
author | Ilya Etingof <etingof@gmail.com> | 2020-03-21 19:05:03 +0100 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2020-03-21 19:06:04 +0100 |
commit | db8f1a7930c6b5826357646746337dafc983f953 (patch) | |
tree | bff679d611583a71ea1e2faf4bb44fb689679187 /pyasn1/type/univ.py | |
parent | 9d70fb1aa2a7193a5c13a76e1be5891bf31a855c (diff) | |
download | pyasn1-git-master.tar.gz |
In `BitString.__int__()`
Diffstat (limited to 'pyasn1/type/univ.py')
-rw-r--r-- | pyasn1/type/univ.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyasn1/type/univ.py b/pyasn1/type/univ.py index 10924c3..488241f 100644 --- a/pyasn1/type/univ.py +++ b/pyasn1/type/univ.py @@ -551,7 +551,7 @@ class BitString(base.SimpleAsn1Type): return self.clone(SizedInteger(self._value >> count).setBitLength(max(0, len(self._value) - count))) def __int__(self): - return self._value + return int(self._value) def __float__(self): return float(self._value) |