On Mon, Jun 23, 2008 at 06:30:58PM +0100, Andy Armstrong wrote:

>> diff -r 64942db7407d src/charset.c
>> --- a/src/charset.c  Sat Jun 21 23:24:54 2008 +1000
>> +++ b/src/charset.c  Tue Jun 24 03:24:33 2008 +1000
>> @@ -1799,6 +1799,7 @@
>>     unsigned long   un = 0;
>>     int                  n;
>>
>> +    if (ptr[0] == '+') ++ptr;
>>     if (ptr[0] == '-')
>>     {
>>      negative = TRUE;
> 
> Doesn't that allow '+-3' ?

This seems to go unnoticed in some other languages too (e.g. Python).

GI

-- 
When a cat is dropped, it always lands on its feet, and when toast is
dropped, it always lands with the buttered side facing down. I propose
to strap buttered toast to the back of a cat. The two will hover,
spinning inches above the ground. With a giant buttered cat array, a
high-speed monorail could easily link New York with Chicago.

Attachment: pgpFpVpmjiDc1.pgp
Description: PGP signature

Raspunde prin e-mail lui