(file) Return to XmlReader.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/XmlReader.cpp between version 1.38 and 1.39

version 1.38, 2002/03/20 17:47:07 version 1.39, 2002/03/20 19:13:40
Line 700 
Line 700 
  
     while (first != last)     while (first != last)
     {     {
         if (x < -922337203685477580LL /* -(1<<63) / 10 */)          if (x < PEGASUS_LLONG_MIN/10)
         {         {
             return false;             return false;
         }         }
Line 777 
Line 777 
  
     while (first != last)     while (first != last)
     {     {
         if (x > 1844674407370955161ULL /* (1<<64 - 1) / 10 */)          if (x > PEGASUS_ULLONG_MAX/10)
         {         {
             return false;             return false;
         }         }
         x = 10 * x;         x = 10 * x;
         Uint64 newDigit = (*first++ - '0');         Uint64 newDigit = (*first++ - '0');
         if (18446744073709551615ULL - x < newDigit)          if (PEGASUS_ULLONG_MAX - x < newDigit)
         {         {
             return false;             return false;
         }         }


Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2