Skip to content
This repository was archived by the owner on Mar 27, 2026. It is now read-only.

Commit 2d2978b

Browse files
nomisrussss
authored andcommitted
Support integers with an odd length
1 parent 7b3d1e1 commit 2d2978b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

emv/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def from_hex_int(val):
2222
>>> from_hex_int([0x12, 0x34])
2323
1234
2424
"""
25-
return int("".join(["%02x" % i for i in val]))
25+
return int("".join(["%02x" % i for i in val]).rstrip("f"))
2626

2727

2828
def from_hex_date(val):

0 commit comments

Comments
 (0)