where Atof() is actually strto[l]d(), some platforms seem to want
to set errno randomly)
p4raw-id: //depot/perl@5707
UV uv;
errno = 0;
if (*PL_tokenbuf == '-')
- iv = Atol(PL_tokenbuf);
+ iv = Strtol(PL_tokenbuf, (char**)NULL, 10);
else
- uv = Atoul(PL_tokenbuf);
+ uv = Strtoul(PL_tokenbuf, (char**)NULL, 10);
if (errno)
floatit = TRUE; /* probably just too large */
else if (*PL_tokenbuf == '-')
sv_setuv(sv, uv);
}
if (floatit) {
- char *tp;
- errno = 0;
value = Atof(PL_tokenbuf);
- if (errno)
- Perl_die(aTHX_ "unparseable float");
- else
- sv_setnv(sv, value);
- }
+ sv_setnv(sv, value);
+ }
#endif
if ( floatit ? (PL_hints & HINT_NEW_FLOAT) :
(PL_hints & HINT_NEW_INTEGER) )