< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [reSIProcate] ParseBuffer::integer() does not parse negative integers


        Yeah, looks like this should work if the sign multiplication is just 
removed. I'll add a test.

Best regards,
Byron Campen

> Hi.
> 
> The functionality was broken by r6512 of /main/rutil/ParseBuffer.cxx
> 
> The following condition is always true, for it is expanded to
> (0 > negative number) for the first digit.
> 
>      if(signum*last > signum*num)
>      {
>         fail(__FILE__, __LINE__,"Overflow detected.");
>      }
> 
> -- 
> ...Bye..Dmitry.

Attachment: smime.p7s
Description: S/MIME cryptographic signature