Skip to content

Commit

Permalink
pp_substr: tweak len_is_uv assignment for readability
Browse files Browse the repository at this point in the history
As suggested in #22785
  • Loading branch information
richardleach committed Jan 10, 2025
1 parent 5b97a18 commit 7a2b126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pp.c
Original file line number Diff line number Diff line change
Expand Up @@ -3604,7 +3604,7 @@ PP_wrapped(pp_substr,
}
if ((len_sv = POPs)) {
len_iv = SvIV(len_sv);
len_is_uv = len_iv ? SvIOK_UV(len_sv) : 1;
len_is_uv = len_iv == 0 || SvIOK_UV(len_sv);
}
else num_args--;
}
Expand Down

0 comments on commit 7a2b126

Please sign in to comment.