[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: next m4 snapshot [was: M4 1.4.14 on AIX 7.1BETA]
From: |
Rainer Tammer |
Subject: |
Re: next m4 snapshot [was: M4 1.4.14 on AIX 7.1BETA] |
Date: |
Fri, 30 Jul 2010 23:12:55 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.11) Gecko/20100701 SeaMonkey/2.0.6 |
Hello Eric,
Eric Blake wrote:
> ... cut for clarity ...
>> test-strtod.c:762: assertion failed
>> {
>> const char input[] = "0x1p";
>> char *ptr;
>> double result;
>> errno = 0;
>> result = strtod (input, &ptr);
>> ASSERT (result == 1.0);
>> ASSERT (ptr == input + 3); <- fail
>> ASSERT (errno == 0);
>> }
>>
> And yet another problem, but I'm guessing here as I don't have your
> debugger output. I'm guessing it parsed "0x1p" instead of "0x1" - the p
> must not be parsed if there is no exponent.
>
>
oops, I forgot to add this.
(dbx) where
raise(??) at 0xd0120f40
abort() at 0xd016d9e4
unnamed block in main(), line 762 in "test-strtod.c"
main(), line 762 in "test-strtod.c"
(dbx) print ptr
""
(dbx) print *ptr
'\0'
(dbx) print result
1.0
(dbx) print input
"0x1p"
(dbx)
Bye
Rainer