Skip to content

Commit

Permalink
fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
hasumikin committed Apr 2, 2021
1 parent 5a28590 commit 3976870
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ print_lv_ab(void *dummy, uint8_t *irep, uint16_t a, uint16_t b)
}

char*
mrb_sym_dump(void *dummy, uint16_t b)
mrb_sym_dump(char *s, uint16_t b)
{
char s[10];
sprintf(s, "%d", b);
return s;
}
Expand All @@ -48,7 +47,7 @@ mrb_sym_dump(void *dummy, uint16_t b)
void
Dump_codeDump(uint8_t *irep)
{
void *mrb = NULL;
char mrb[10];
uint32_t len = 0;
len += *(irep + 10) << 24;
len += *(irep + 11) << 16;
Expand Down
1 change: 1 addition & 0 deletions src/ruby-lemon-parse/parse.y
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
%type basic_symbol { const char* }
%type operation2 { const char* }
%type f_norm_arg { const char* }
%type f_block_arg { const char* }

%include {
#include <stdlib.h>
Expand Down

0 comments on commit 3976870

Please sign in to comment.