Permalink
Browse files

add a comment so we're not hiding the real cause

  • Loading branch information...
1 parent 2f4959f commit c74de6b0b6ff6bef9b90c01be0158d3767b62952 Jimmy Zhuo committed Jun 8, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/m0/c/ops.c
View
@@ -339,6 +339,10 @@ static void
m0_op_gc_alloc( M0_CallFrame *frame, const unsigned char *ops )
{
const int bytes = frame->registers[ops[2]];
+
+ /* XXX: temporary fix, originally was
+ void *ptr = malloc( sizeof(char) * bytes );
+ */
void *ptr = malloc( sizeof(uint64_t) * bytes );
frame->registers[ops[1]] = (uint64_t) ptr;
}

0 comments on commit c74de6b

Please sign in to comment.