summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-04-04 20:54:05 -0600
committerKarl Williamson <khw@cpan.org>2020-04-04 21:53:53 -0600
commitb9abeb0c03569f216278385fa100db0891ff33aa (patch)
treecb37ae4f0bfd10768c85598d635dc7e38aaa206c /numeric.c
parentee371330f17a3e0efeaa1cc02a9af099ed2e5b0c (diff)
downloadperl-b9abeb0c03569f216278385fa100db0891ff33aa.tar.gz
perlapi: Clarify grok_atoUV()
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/numeric.c b/numeric.c
index 51a0edfbe6..e774e13234 100644
--- a/numeric.c
+++ b/numeric.c
@@ -424,7 +424,7 @@ Perl_grok_bin_oct_hex(pTHX_ const char *start,
s = s0; /* s0 potentially advanced from 'start' */
/* Unroll the loop so that the first 8 digits are branchless except for the
- * switch. A ninth one overflows a 32 bit word. */
+ * switch. A ninth hex one overflows a 32 bit word. */
switch (len) {
case 0:
return 0;
@@ -1281,7 +1281,8 @@ If you constrain the portion of C<pv> that is looked at by this function (by
passing a non-NULL C<endptr>), and if the intial bytes of that portion form a
valid value, it will return TRUE, setting C<*endptr> to the byte following the
final digit of the value. But if there is no constraint at what's looked at,
-all of C<pv> must be valid in order for TRUE to be returned.
+all of C<pv> must be valid in order for TRUE to be returned. C<*endptr> is
+unchanged from its value on input if FALSE is returned;
The only characters this accepts are the decimal digits '0'..'9'.