Commit 68d3b764 authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

Merge branch 'master' of github.com:mruby/mruby

parents c8700c4a 9df3552b
...@@ -688,7 +688,7 @@ new_float(parser_state *p, const char *s) ...@@ -688,7 +688,7 @@ new_float(parser_state *p, const char *s)
static node* static node*
new_str(parser_state *p, const char *s, int len) new_str(parser_state *p, const char *s, int len)
{ {
return cons((node*)NODE_STR, cons((node*)strndup(s, len), (node*)len)); return cons((node*)NODE_STR, cons((node*)strndup(s, len), (node*)(intptr_t)len));
} }
// (:dstr . a) // (:dstr . a)
...@@ -4708,7 +4708,7 @@ parser_update_cxt(parser_state *p, mrbc_context *cxt) ...@@ -4708,7 +4708,7 @@ parser_update_cxt(parser_state *p, mrbc_context *cxt)
int i = 0; int i = 0;
if (!cxt) return; if (!cxt) return;
if ((int)p->tree->car != NODE_SCOPE) return; if ((int)(intptr_t)p->tree->car != NODE_SCOPE) return;
n0 = n = p->tree->cdr->car; n0 = n = p->tree->cdr->car;
while (n) { while (n) {
i++; i++;
......
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