mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Remove positive check for unsigned integer; close #5218
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user