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

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


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.