summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-01-08 23:10:49 +0900
committerGitHub <[email protected]>2021-01-08 23:10:49 +0900
commit69482dbc8e590ed66f0944e9b48c4f9c2f83c873 (patch)
tree51d5ff5751d16d13d60d84c433a5bd01975e7d0a /src
parent6587269af8800831f2175ae04ca738328b9b1308 (diff)
parentf7ff4810f088463bca0f554f189f334e15d2872e (diff)
downloadmruby-69482dbc8e590ed66f0944e9b48c4f9c2f83c873.tar.gz
mruby-69482dbc8e590ed66f0944e9b48c4f9c2f83c873.zip
Merge pull request #5265 from shuujii/reapply-116e128b-because-it-is-back-at-456878ba
Reapply 116e128b because it is back at 456878ba
Diffstat (limited to 'src')
-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;