Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix the order of the get_byte arguments.

  • Loading branch information...
commit 163df79814ed2b0c539f7c41df00f86188df398d 1 parent 0ade1d5
@nbrown nbrown authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/m0/c/m0_ops.c
View
4 src/m0/c/m0_ops.c
@@ -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];
}
Please sign in to comment.
Something went wrong with that request. Please try again.