summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2009-09-27 02:45:48 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2009-09-27 02:45:48 (GMT)
commit1beaa1af679d49d99696ec907662b764f7ba1867 (patch)
treee44d0cd0e8de40f2a0880d89b448a57d72e46f9c
parentd6c23b21afa52a3b1183507445b9845db09f199e (diff)
Fixed a copy/paste mistake.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@120 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
-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;