diff options
| author | dearblue <[email protected]> | 2021-04-03 16:22:40 +0900 |
|---|---|---|
| committer | dearblue <[email protected]> | 2021-04-03 16:22:40 +0900 |
| commit | 3e48f4eebc9f2cd6658ac94745738dce49327273 (patch) | |
| tree | b7f8c9e07e8b0e8db2af7b1fdf596b887a0770f2 /src | |
| parent | aca59de88e87d81021c4e05f39a55013d068701f (diff) | |
| download | mruby-3e48f4eebc9f2cd6658ac94745738dce49327273.tar.gz mruby-3e48f4eebc9f2cd6658ac94745738dce49327273.zip | |
Fix build failures with `enable_debug` and `enable_cxx_abi`
Under C++, there is no implicit conversion from `int` to `enum`, which caused a compilation error.
Diffstat (limited to 'src')
| -rw-r--r-- | src/dump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dump.c b/src/dump.c index 74d52d689..3805d44cf 100644 --- a/src/dump.c +++ b/src/dump.c @@ -1207,7 +1207,7 @@ dump_debug(mrb_state *mrb, const char *name, int n, mrb_irep_debug_info *info, fputs("};\n", fp); fprintf(fp, "static mrb_irep_debug_info_file %s_debug_file_%d = {\n", name, n); - fprintf(fp, "%d, %d, %d, 0, {%s_debug_lines_%d}};\n", + fprintf(fp, "%d, %d, %d, mrb_debug_line_ary, {%s_debug_lines_%d}};\n", info->files[0]->start_pos, info->files[0]->filename_sym, info->files[0]->line_entry_count, |
