summaryrefslogtreecommitdiff
path: root/embed.h
diff options
context:
space:
mode:
authorsisyphus <sisyphus1@optusnet.com.au>2018-08-01 22:33:38 +1000
committerKarl Williamson <khw@cpan.org>2018-08-09 11:27:35 -0600
commitce6f496d720f6206455628425320badd95b07372 (patch)
tree5e75aeff30de41a8f6ec48d02af97410dae86157 /embed.h
parentc7ea9f039c0e7c2333adfcb3b9f1e3f2b25693a1 (diff)
downloadperl-ce6f496d720f6206455628425320badd95b07372.tar.gz
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.
Diffstat (limited to 'embed.h')
-rw-r--r--embed.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/embed.h b/embed.h
index c9001a128e..c59e6bcf63 100644
--- a/embed.h
+++ b/embed.h
@@ -1653,11 +1653,6 @@
#define utf16_textfilter(a,b,c) S_utf16_textfilter(aTHX_ a,b,c)
# endif
# endif
-# if !defined(USE_QUADMATH)
-# if defined(PERL_IN_NUMERIC_C)
-#define mulexp10 S_mulexp10
-# endif
-# endif
# if !defined(UV_IS_QUAD)
# if defined(PERL_IN_UTF8_C)
#define is_utf8_cp_above_31_bits S_is_utf8_cp_above_31_bits