codegen.c: labels should be `uint32_t`.

parent adfd29c1
...@@ -1041,7 +1041,7 @@ lambda_body(codegen_scope *s, node *tree, int blk) ...@@ -1041,7 +1041,7 @@ lambda_body(codegen_scope *s, node *tree, int blk)
else { else {
mrb_aspec a; mrb_aspec a;
int ma, oa, ra, pa, ka, kd, ba; int ma, oa, ra, pa, ka, kd, ba;
int pos, i; uint32_t pos, i;
node *opt; node *opt;
node *margs, *pargs; node *margs, *pargs;
node *tail; node *tail;
...@@ -1833,7 +1833,8 @@ codegen(codegen_scope *s, node *tree, int val) ...@@ -1833,7 +1833,8 @@ codegen(codegen_scope *s, node *tree, int val)
case NODE_IF: case NODE_IF:
{ {
int pos1, pos2, nil_p = FALSE; uint32_t pos1, pos2;
mrb_bool nil_p = FALSE;
node *elsepart = tree->cdr->cdr->car; node *elsepart = tree->cdr->cdr->car;
if (!tree->car) { if (!tree->car) {
...@@ -1908,7 +1909,7 @@ codegen(codegen_scope *s, node *tree, int val) ...@@ -1908,7 +1909,7 @@ codegen(codegen_scope *s, node *tree, int val)
case NODE_AND: case NODE_AND:
{ {
int pos; uint32_t pos;
codegen(s, tree->car, VAL); codegen(s, tree->car, VAL);
pop(); pop();
...@@ -1920,7 +1921,7 @@ codegen(codegen_scope *s, node *tree, int val) ...@@ -1920,7 +1921,7 @@ codegen(codegen_scope *s, node *tree, int val)
case NODE_OR: case NODE_OR:
{ {
int pos; uint32_t pos;
codegen(s, tree->car, VAL); codegen(s, tree->car, VAL);
pop(); pop();
...@@ -2329,7 +2330,7 @@ codegen(codegen_scope *s, node *tree, int val) ...@@ -2329,7 +2330,7 @@ codegen(codegen_scope *s, node *tree, int val)
if (len == 2 && if (len == 2 &&
((name[0] == '|' && name[1] == '|') || ((name[0] == '|' && name[1] == '|') ||
(name[0] == '&' && name[1] == '&'))) { (name[0] == '&' && name[1] == '&'))) {
int pos; uint32_t pos;
pop(); pop();
if (val) { if (val) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment