Skip to content

Commit e2189cb

Browse files
committed
math.ceil returns a float in Python 2
1 parent 93a3c0a commit e2189cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jose/backends/cryptography_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def _sig_component_length(self):
104104
105105
This is the number of bytes required to encode the maximum key value.
106106
"""
107-
return math.ceil(self.prepared_key.key_size / 8.0)
107+
return int(math.ceil(self.prepared_key.key_size / 8.0))
108108

109109
def _der_to_raw(self, der_signature):
110110
"""Convert signature from DER encoding to RAW encoding."""

0 commit comments

Comments
 (0)