axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject cvs commit: ws-axis/c/src/soap/xsd Long.cpp
Date Mon, 11 Jul 2005 15:33:29 GMT
dicka       2005/07/11 08:33:29

  Modified:    c/src/soap/xsd Long.cpp
  Log:
  Correct minInclusive for xsd:long to be correct value, have taken example from <limits.h>
on Windows and Linux of how to do this without creating warnings of "value too large".
  
  Submitted by: Adrian Dick
  
  Revision  Changes    Path
  1.13      +1 -1      ws-axis/c/src/soap/xsd/Long.cpp
  
  Index: Long.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/xsd/Long.cpp,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- Long.cpp	11 Jul 2005 05:43:52 -0000	1.12
  +++ Long.cpp	11 Jul 2005 15:33:28 -0000	1.13
  @@ -76,7 +76,7 @@
   
   MinInclusive* Long::getMinInclusive()
   {    
  -    LONGLONG minInclusive = LONGLONGVALUE(-9223372036854775807);
  +    LONGLONG minInclusive = (-LONGLONGVALUE(9223372036854775807) - LONGLONGVALUE(1));
       return new MinInclusive(minInclusive);
   }
   
  
  
  

Mime
View raw message