summaryrefslogtreecommitdiffhomepage
path: root/src/debug.c
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2021-01-08 15:23:50 +0900
committerKOBAYASHI Shuji <[email protected]>2021-01-08 15:23:50 +0900
commitf7ff4810f088463bca0f554f189f334e15d2872e (patch)
tree8de5660ce28ddd0a99740d4feb5491521ccf2ff9 /src/debug.c
parent1cc1ade6101986031e6c73e6c41d719f759b18bd (diff)
downloadmruby-f7ff4810f088463bca0f554f189f334e15d2872e.tar.gz
mruby-f7ff4810f088463bca0f554f189f334e15d2872e.zip
Reapply 116e128b because it is back at 456878ba
Diffstat (limited to 'src/debug.c')
-rw-r--r--src/debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug.c b/src/debug.c
index 2f9320ac9..c03c91cf5 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -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;