Skip to content

Commit

Permalink
Merge pull request #65 from lff5/patch-1
Browse files Browse the repository at this point in the history
UUID._init_from_int() size bugfix in uuid_.py
  • Loading branch information
dhalbert authored Mar 20, 2024
2 parents 212ce2c + 981dded commit c3aec28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _bleio/uuid_.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def _init_from_int(uuid: int) -> tuple[bytes, int]:
raise ValueError("UUID integer value must be unsigned 16- or 32-bit")
if uuid <= 2**16:
size = 16
if uuid <= 2**32:
elif uuid <= 2**32:
size = 32
uuid128 = UUID.standard_uuid128_from_uuid32(uuid)
return uuid128, size
Expand Down

0 comments on commit c3aec28

Please sign in to comment.