summaryrefslogtreecommitdiff
path: root/python/__init__.py
diff options
context:
space:
mode:
authorplafosse <peter.a.lafosse@gmail.com>2016-11-16 13:53:51 -0500
committerGitHub <noreply@github.com>2016-11-16 13:53:51 -0500
commit299f61f7501bf25425a6005b18b7ee06f1c00e16 (patch)
tree70193395a205e704eb1716c2ff966af8aad571af /python/__init__.py
parentb8e765e665f5dd78f4f829d9ae748a9709a1d23b (diff)
parent96b81a90b2a2f4663dbf0023dbe657a26935172f (diff)
Merge pull request #512 from joshwatson/sxt-flags
Added flags parameter to sign_extend
Diffstat (limited to 'python/__init__.py')
-rw-r--r--python/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/__init__.py b/python/__init__.py
index 5e147ad5..4c28e822 100644
--- a/python/__init__.py
+++ b/python/__init__.py
@@ -8347,16 +8347,17 @@ class LowLevelILFunction(object):
"""
return self.expr(core.LLIL_NOT, value.index, size = size, flags = flags)
- def sign_extend(self, size, value):
+ def sign_extend(self, size, value, flags = None):
"""
``sign_extend`` two's complement sign-extends the expression in ``value`` to ``size`` bytes
:param int size: the size of the result in bytes
:param LowLevelILExpr value: the expression to sign extend
+ :param str flags: optional, flags to set
:return: The expression ``sx.<size>(value)``
:rtype: LowLevelILExpr
"""
- return self.expr(core.LLIL_SX, value.index, size = size)
+ return self.expr(core.LLIL_SX, value.index, size = size, flags = flags)
def zero_extend(self, size, value):
"""