This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
PATCH: [perl #41202] text->float gives wrong answer
authorsisyphus <sisyphus1@optusnet.com.au>
Wed, 1 Aug 2018 12:33:38 +0000 (22:33 +1000)
committerKarl Williamson <khw@cpan.org>
Thu, 9 Aug 2018 17:27:35 +0000 (11:27 -0600)
commitce6f496d720f6206455628425320badd95b07372
tree5e75aeff30de41a8f6ec48d02af97410dae86157
parentc7ea9f039c0e7c2333adfcb3b9f1e3f2b25693a1
PATCH: [perl #41202] text->float gives wrong answer

This changes to use Perl_strtod() when available, and that turns out to
be the key to fixing this bug.

S_mulexp10() is removed from embed.fnc to avoid repeating the
complicated prerequisites for defining Perl_strtod().  This works
because this static function already was defined before use in
numeric.c, and always called in full form without using a macro.

James Keenan fixed a file permissions problem originally introduced by
this commit, but the fix has been squashed into it.
embed.fnc
embed.h
numeric.c
proto.h