Permalink
Browse files

Update pmc_new to listen to $src1 as well as $imm.

  • Loading branch information...
1 parent 922c518 commit 17aeba98c8f8e7d0bb40fee08f13b8677a9d368c @atrodo committed Dec 14, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 core.c
View
2 core.c
@@ -396,7 +396,7 @@ core_exec(Lorito_Interp *interp)
switch (regtype)
{
case OP_INT:
- $P(op->dest) = lorito_pmc_new(interp, $imm);
+ $P(op->dest) = lorito_pmc_new(interp, $I(op->src1) + $imm);
break;
case OP_PMC:
$P(op->dest) = lorito_pmc_new(interp, $P(op->src1)->size);

0 comments on commit 17aeba9

Please sign in to comment.