summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2014-09-19 15:38:21 +0200
committerWim Taymans <wtaymans@redhat.com>2014-09-19 15:38:21 +0200
commit93a40b2e4ec17796f5f6d14f19081be5a2ad80f2 (patch)
tree211c2ad404e66b8da51b6000495af5a5437d9739
parent2ae41b98a35405dbfd35209e7d68428be77a2e62 (diff)
parse: fix opcode arg size
-rw-r--r--orc/orcparse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/orc/orcparse.c b/orc/orcparse.c
index cc3a9f2..23c4dd1 100644
--- a/orc/orcparse.c
+++ b/orc/orcparse.c
@@ -377,11 +377,11 @@ opcode_arg_size (OrcStaticOpcode *opcode, int arg)
{
int i;
for(i=0;i<ORC_STATIC_OPCODE_N_DEST;i++){
- if (opcode->dest_size[i] != 0 && --arg == 0)
+ if (opcode->dest_size[i] != 0 && arg-- == 0)
return opcode->dest_size[i];
}
for(i=0;i<ORC_STATIC_OPCODE_N_SRC;i++){
- if (opcode->src_size[i] != 0 && --arg == 0)
+ if (opcode->src_size[i] != 0 && arg-- == 0)
return opcode->src_size[i];
}
return 0;