Skip to content

Commit

Permalink
Merge pull request #580 from shtirlic/fix_warns
Browse files Browse the repository at this point in the history
Fix compile warnings in mirb
  • Loading branch information
matz committed Dec 1, 2012
2 parents 5947113 + 83ecb2f commit 8c24e9e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/mirb/mirb.c
Expand Up @@ -5,7 +5,7 @@
** an interactive way and executes it
** immediately. It's a REPL...
*/

#include <string.h>

#include <mruby.h>
Expand Down Expand Up @@ -143,7 +143,7 @@ print_cmdline(int code_block_open)
int
main(void)
{
char last_char;
int last_char;
char ruby_code[1024] = { 0 };
char last_code_line[1024] = { 0 };
int char_index;
Expand All @@ -156,7 +156,7 @@ main(void)

print_hint();

/* new interpreter instance */
/* new interpreter instance */
mrb = mrb_open();
if (mrb == NULL) {
fprintf(stderr, "Invalid mrb interpreter, exiting mirb");
Expand Down Expand Up @@ -207,7 +207,7 @@ main(void)
parser->send = ruby_code + strlen(ruby_code);
parser->lineno = 1;
mrb_parser_parse(parser, cxt);
code_block_open = is_code_block_open(parser);
code_block_open = is_code_block_open(parser);

if (code_block_open) {
/* no evaluation of code */
Expand Down

0 comments on commit 8c24e9e

Please sign in to comment.