diff options
| author | Ajax <commial@gmail.com> | 2017-01-05 14:54:31 +0100 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2017-01-05 14:55:45 +0100 |
| commit | ff72136d4b3b7441195924a124350b30624b2768 (patch) | |
| tree | 5b0435de1cdea341f9172351fa77a5133f97cfe7 /miasm2/arch/x86/sem.py | |
| parent | 33ba096fe035bc1c6db77bf9c4f2233b09e1300b (diff) | |
| download | miasm-ff72136d4b3b7441195924a124350b30624b2768.tar.gz miasm-ff72136d4b3b7441195924a124350b30624b2768.zip | |
x86 sem: fix a type mismatch
Diffstat (limited to '')
| -rw-r--r-- | miasm2/arch/x86/sem.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/miasm2/arch/x86/sem.py b/miasm2/arch/x86/sem.py index 152208d4..69a17684 100644 --- a/miasm2/arch/x86/sem.py +++ b/miasm2/arch/x86/sem.py @@ -1732,9 +1732,11 @@ def float_pop(avoid_flt=None, popcount=1): if avoid_flt != float_list[i]: e.append(m2_expr.ExprAff(float_list[i], float_list[i + popcount])) + fill_value = m2_expr.ExprOp("int_64_to_double", + m2_expr.ExprInt(0, float_list[i].size)) for i in xrange(8 - popcount, 8): e.append(m2_expr.ExprAff(float_list[i], - m2_expr.ExprInt(0, float_list[i].size))) + fill_value)) e.append( m2_expr.ExprAff(float_stack_ptr, float_stack_ptr - m2_expr.ExprInt(popcount, 3))) |