You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2005/07/11 17:33:29 UTC
cvs commit: ws-axis/c/src/soap/xsd Long.cpp
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);
}