You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
diff --git a/bitfield.py b/bitfield.py
index 229b473..21aa646 100644
--- a/bitfield.py+++ b/bitfield.py@@ -161,6 +161,8 @@ class Bitfield(object):
'0b0'
"""
length = len(self)
+ if isinstance(value, __class__):+ value = value.value
if isinstance(key, int):
if key >= length or key < -length:
raise IndexError("Bitfield index out of range")
The text was updated successfully, but these errors were encountered: