Reapply 116e128b because it is back at 456878ba

This commit is contained in:
KOBAYASHI Shuji
2021-01-08 15:23:50 +09:00
parent 1cc1ade610
commit f7ff4810f0
+1 -1
View File
@@ -66,7 +66,7 @@ mrb_debug_get_filename(mrb_state *mrb, const mrb_irep *irep, uint32_t pc)
MRB_API int32_t
mrb_debug_get_line(mrb_state *mrb, const mrb_irep *irep, uint32_t pc)
{
if (irep && pc >= 0 && pc < irep->ilen) {
if (irep && pc < irep->ilen) {
mrb_irep_debug_info_file* f = NULL;
if (!irep->debug_info) {
return -1;