summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/arch/x86/operand.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c8011a3..a3dc317 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
09-09-27 Cyrille Bagard <nocbos@gmail.com>
+ * src/arch/x86/operand.c:
+ Fix a copy/paste mistake: the operand size argument is never initialized.
+
+09-09-27 Cyrille Bagard <nocbos@gmail.com>
+
* src/gtkext/gtkblockview.c:
Replace hardcoded integer value by G_MAXINT.
diff --git a/src/arch/x86/operand.c b/src/arch/x86/operand.c
index 31c993f..3a37d0a 100644
--- a/src/arch/x86/operand.c
+++ b/src/arch/x86/operand.c
@@ -1023,7 +1023,7 @@ bool x86_read_one_operand(GArchInstruction *instr, const bin_t *data, off_t *pos
break;
case X86_OTP_IMM1632:
- if (oprsize == AOS_UNDEFINED) oprsize = va_arg(ap, AsmOperandSize);
+ oprsize = va_arg(ap, AsmOperandSize);
op = g_imm_operand_new_from_data(oprsize == AOS_32_BITS ? MDS_32_BITS : MDS_16_BITS, data, pos, len, SRE_LITTLE);
break;