From: David Mitchell Date: Wed, 10 May 2017 13:03:25 +0000 (+0100) Subject: Perl_sv_vcatpvfn_flags: simplify an expression X-Git-Tag: v5.27.1~81^2~96 X-Git-Url: https://perl5.git.perl.org/perl5.git/commitdiff_plain/196344c20348c6f1effb9b3dabcee6350d47fbff?hp=c0535913148dc15651cf402b864ceb78a5e40c6d Perl_sv_vcatpvfn_flags: simplify an expression In the hex floating/point code, (subnormal ? vfnz : vhex) is equivalent to v0, which we just set to the same value. So keep things simple. --- diff --git a/sv.c b/sv.c index 2490b15..f56fc16 100644 --- a/sv.c +++ b/sv.c @@ -12693,7 +12693,7 @@ Perl_sv_vcatpvfn_flags(pTHX_ SV *const sv, const char *const pat, const STRLEN p if (has_precis) { U8* ve = (subnormal ? vlnz + 1 : vend); - SSize_t vn = ve - (subnormal ? vfnz : vhex); + SSize_t vn = ve - v0; if ((SSize_t)(precis + 1) < vn) { bool overflow = FALSE; if (v0[precis + 1] < 0x8) {