Skip to content

Commit

Permalink
pass size in bytes, not bits, to allocate_box_dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Feb 8, 2014
1 parent 6a080ea commit 71fcb99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cgutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ static Value *emit_tupleref(Value *tuple, Value *ival, jl_value_t *jt, jl_codect
jl_add_linfo_root(ctx->linfo, jt);
v = allocate_box_dynamic(emit_tupleref(literal_pointer_val(jt),
ival, jl_typeof(jt), ctx),
ConstantInt::get(T_size,ty->getScalarSizeInBits()), v);
ConstantInt::get(T_size,ty->getScalarSizeInBits()/8), v);
}
}
return v;
Expand Down

0 comments on commit 71fcb99

Please sign in to comment.