Permalink
Browse files

Fix the order of the get_byte arguments.

  • Loading branch information...
1 parent 0ade1d5 commit 163df79814ed2b0c539f7c41df00f86188df398d @nbrown nbrown committed Apr 9, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/m0/c/m0_ops.c
View
@@ -273,8 +273,8 @@ m0_op_set( M0_CallFrame *frame, const unsigned char *ops )
static void
m0_op_get_byte( M0_CallFrame *frame, const unsigned char *ops )
{
- const char *src = (char*)frame->registers[ops[3]];
- const int offset = frame->registers[ops[2]];
+ const char *src = (char*)frame->registers[ops[2]];
+ const int offset = frame->registers[ops[3]];
char *target = (char*)&frame->registers[ops[1]];
*target = (char)src[offset];
}

0 comments on commit 163df79

Please sign in to comment.