summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authordearblue <[email protected]>2021-04-03 16:22:40 +0900
committerdearblue <[email protected]>2021-04-03 16:22:40 +0900
commit3e48f4eebc9f2cd6658ac94745738dce49327273 (patch)
treeb7f8c9e07e8b0e8db2af7b1fdf596b887a0770f2 /src
parentaca59de88e87d81021c4e05f39a55013d068701f (diff)
downloadmruby-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.c2
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,