diff options
author | Wim Taymans <wtaymans@redhat.com> | 2014-09-19 15:38:21 +0200 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2014-09-19 15:38:21 +0200 |
commit | 93a40b2e4ec17796f5f6d14f19081be5a2ad80f2 (patch) | |
tree | 211c2ad404e66b8da51b6000495af5a5437d9739 | |
parent | 2ae41b98a35405dbfd35209e7d68428be77a2e62 (diff) |
parse: fix opcode arg size
-rw-r--r-- | orc/orcparse.c | 4 |
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; |