Skip to content

Commit 78ba900

Browse files
committed
doop.c: Use MIN()
This is slightly cleaner than hand rolling the min.
1 parent 13a9ab3 commit 78ba900

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ Perl_do_vop(pTHX_ I32 optype, SV *sv, SV *left, SV *right)
11081108
len = leftlen;
11091109
}
11101110
else { /* Neither is UTF-8 */
1111-
len = leftlen < rightlen ? leftlen : rightlen;
1111+
len = MIN(leftlen, rightlen);
11121112
}
11131113

11141114
lensave = len;

0 commit comments

Comments
 (0)