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 sa...@apache.org on 2005/08/17 10:34:56 UTC
cvs commit: ws-axis/c/src/soap/xsd NegativeInteger.cpp
samisa 2005/08/17 01:34:56
Modified: c/src/soap/xsd NegativeInteger.cpp
Log:
eleminated compiler warning
Revision Changes Path
1.6 +2 -1 ws-axis/c/src/soap/xsd/NegativeInteger.cpp
Index: NegativeInteger.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/src/soap/xsd/NegativeInteger.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- NegativeInteger.cpp 12 Aug 2005 04:54:18 -0000 1.5
+++ NegativeInteger.cpp 17 Aug 2005 08:34:56 -0000 1.6
@@ -24,7 +24,8 @@
{
if (value)
{
- if((*value) > -1) // the value must be minus one or less, hence validate and fix
+ int vauleToCheck = (*value);
+ if(vauleToCheck > -1) // the value must be minus one or less, hence validate and fix
throw AxisSoapException(CLIENT_SOAP_SOAP_CONTENT_ERROR, "PositiveInteger value must be minus one or less");
setNil(false);
serialize(value);