diff options
| author | Josh Watson <josh@joshwatson.com> | 2016-10-12 13:33:44 -0400 |
|---|---|---|
| committer | Josh Watson <josh@joshwatson.com> | 2016-10-12 13:33:44 -0400 |
| commit | 96b81a90b2a2f4663dbf0023dbe657a26935172f (patch) | |
| tree | ea1c19120b32f6a7f709b113aee7560343f16af4 /python/__init__.py | |
| parent | c99fd8fddc8734c121383d8d3e078674cb1a5e88 (diff) | |
Added flags parameter to sign_extend
Diffstat (limited to 'python/__init__.py')
| -rw-r--r-- | python/__init__.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/__init__.py b/python/__init__.py index 70267678..37edb17a 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -8291,16 +8291,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): """ |
