about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorw4kfu <gw4kfu@gmail.com>2018-11-08 14:10:20 -0500
committerw4kfu <gw4kfu@gmail.com>2018-11-10 09:13:59 -0500
commit26e81f4a6d0efaacb5ada2adf02134f348daf3b0 (patch)
treefd61874fbcd793a214ac9f91bcbdab7e09b62833
parent8276ac5629fdcf3ad885c8e4b9d2d7ed6e1e1d77 (diff)
downloadmiasm-26e81f4a6d0efaacb5ada2adf02134f348daf3b0.tar.gz
miasm-26e81f4a6d0efaacb5ada2adf02134f348daf3b0.zip
fix TypeError in C translator
Diffstat (limited to '')
-rw-r--r--miasm2/ir/translators/C.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm2/ir/translators/C.py b/miasm2/ir/translators/C.py
index 20fa210e..a5453745 100644
--- a/miasm2/ir/translators/C.py
+++ b/miasm2/ir/translators/C.py
@@ -317,7 +317,7 @@ class TranslatorC(Translator):
                         ">>>": "ror",
                         "<<<": "rol"
                     }
-                    out = "bignum_%d(%s, %d, bignum_to_uint64(%s))" % (
+                    out = "bignum_%s(%s, %d, bignum_to_uint64(%s))" % (
                         op[expr.op], arg0, expr.size, arg1
                     )
                     out = "bignum_mask(%s, %d)"% (out, expr.size)