summaryrefslogtreecommitdiffstats
path: root/sploit/arch.py
diff options
context:
space:
mode:
Diffstat (limited to 'sploit/arch.py')
-rw-r--r--sploit/arch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sploit/arch.py b/sploit/arch.py
index 5933a95..8fc139d 100644
--- a/sploit/arch.py
+++ b/sploit/arch.py
@@ -51,6 +51,7 @@ arch = Arch(**x86_64.__dict__)
def __int(i, signed=False, width=None):
# type conversion from int to int of given sign and width
+ i = int(i)
width = width or arch.wordsize
bits = 8 * width
if signed:
@@ -110,4 +111,3 @@ def itob(i, width=None, byteorder=None):
width = width or arch.wordsize
byteorder = byteorder or arch.endianness
return __int(i,False,width).to_bytes(width, byteorder, signed=False)
-