summaryrefslogtreecommitdiffhomepage
path: root/src/codegen.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-04-20 15:43:33 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2013-04-20 15:43:33 -0700
commit4a311a4760af037f7a9b8e2b60b4448e92e7f5e4 (patch)
tree7fe152566d5da42a05fdacb9786d4c9f6457630d /src/codegen.c
parentd9d404e3b0f2f39b1195e8c5828550d67be8fa34 (diff)
parentec4892c7ea0e4bafdee776c79eb9db4071060dc6 (diff)
downloadmruby-4a311a4760af037f7a9b8e2b60b4448e92e7f5e4.tar.gz
mruby-4a311a4760af037f7a9b8e2b60b4448e92e7f5e4.zip
Merge pull request #1196 from monaka/pr-use-mrb_aspec
Cleanup around mrb_code, mrb_aspec.
Diffstat (limited to 'src/codegen.c')
-rw-r--r--src/codegen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/codegen.c b/src/codegen.c
index d9fc10657..38328c669 100644
--- a/src/codegen.c
+++ b/src/codegen.c
@@ -586,7 +586,7 @@ lambda_body(codegen_scope *s, node *tree, int blk)
}
tree = tree->cdr;
if (tree->car) {
- int32_t a;
+ mrb_aspec a;
int ma, oa, ra, pa, ka, kd, ba;
int pos, i;
node *n, *opt;
@@ -602,8 +602,8 @@ lambda_body(codegen_scope *s, node *tree, int blk)
ka = kd = 0;
ba = tree->car->cdr->cdr->cdr->cdr ? 1 : 0;
- a = ((int32_t)(ma & 0x1f) << 18)
- | ((int32_t)(oa & 0x1f) << 13)
+ a = ((mrb_aspec)(ma & 0x1f) << 18)
+ | ((mrb_aspec)(oa & 0x1f) << 13)
| ((ra & 1) << 12)
| ((pa & 0x1f) << 7)
| ((ka & 0x1f) << 2)