Andy Armstrong wrote:
> On 23 Jun 2008, at 18:28, Ben Schmidt 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' ?

Yeah. That was dumb, wasn't it? So make it

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] == '-')
+   else if (ptr[0] == '-')
     {
        negative = TRUE;

Ben.



--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui