Skip to content

Commit

Permalink
sv.c: Removed a redundant SvNV_nomg call in sv_vcatpvfn_flags.
Browse files Browse the repository at this point in the history
SvNV_nomg(argsv) is redundant here because its NV is already loaded
to the local variable "nv".
  • Loading branch information
t-a-k committed Aug 23, 2021
1 parent e2737ab commit 0d5436f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sv.c
Expand Up @@ -12919,7 +12919,7 @@ Perl_sv_vcatpvfn_flags(pTHX_ SV *const sv, const char *const pat, const STRLEN p
if (Perl_isinfnan(nv)) {
if (c == 'c')
Perl_croak(aTHX_ "Cannot printf %" NVgf " with '%c'",
SvNV_nomg(argsv), (int)c);
nv, (int)c);

elen = S_infnan_2pv(nv, ebuf, sizeof(ebuf), plus);
assert(elen);
Expand Down

0 comments on commit 0d5436f

Please sign in to comment.