This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Perl_sv_vcatpvfn_flags: move Inf handling for ints
authorDavid Mitchell <davem@iabyn.com>
Fri, 26 May 2017 17:19:11 +0000 (18:19 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 7 Jun 2017 08:11:04 +0000 (09:11 +0100)
commitf35bb12b68e7dc46f60a20569722d6d04b72b6c2
tree01e53348bd530ee9864a58cf27ff44f7e768e6a2
parentb154ff054ce4e76402d5ffae3bfd5f169869d153
Perl_sv_vcatpvfn_flags: move Inf handling for ints

integer-like format types handle Inf/Nan specially. Currently the code to
handle this in the main execution path, guarded by

    if (strchr("BbcDdiOouUXx", c)) ...

After the previous few commits reorganised the int-arg getting code, this
block can now be moved into an int-only section, so not slowing down
other format types.

There should be no functional changes.

I've added some comments to the %c branch explaining why its a special
case.
sv.c