| 1 | Description: Fix wrong argument type for count, casts Float to Int if var is not none |
| 2 | Author: Josue Ortega <[email protected]> |
| 3 | Last-Update: 2019-09-06 |
| 4 | |
| 5 | --- a/bip32gen |
| 6 | +++ b/bip32gen |
| 7 | @@ -16,6 +16,8 @@ |
| 8 | with f: |
| 9 | if count is not None: |
| 10 | n = count*2 if is_hex else count |
| 11 | + if n != None: |
| 12 | + n = int(n) |
| 13 | data = f.read(n) |
| 14 | else: |
| 15 | data = f.read() |