This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d00dfa
)
numeric.c: use new SvPVCLEAR and constant string friendly macros
author
Yves Orton
<demerphq@gmail.com>
Wed, 19 Oct 2016 09:14:26 +0000
(11:14 +0200)
committer
Yves Orton
<demerphq@gmail.com>
Wed, 19 Oct 2016 11:28:01 +0000
(13:28 +0200)
numeric.c
patch
|
blob
|
blame
|
history
diff --git
a/numeric.c
b/numeric.c
index
7e05966
..
6ea6968
100644
(file)
--- a/
numeric.c
+++ b/
numeric.c
@@
-1013,7
+1013,7
@@
Perl_grok_number_flags(pTHX_ const char *pv, STRLEN len, UV *valuep, U32 flags)
s++;
if (s >= send)
return numtype;
- if (len == 10 &&
memEQ(pv, "0 but true", 10
)) {
+ if (len == 10 &&
_memEQs(pv, "0 but true"
)) {
if (valuep)
*valuep = 0;
return IS_NUMBER_IN_UV;