axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject cvs commit: ws-axis/c/src/common BasicTypeSerializer.cpp
Date Mon, 13 Dec 2004 02:25:43 GMT
samisa      2004/12/12 18:25:43

  Modified:    c/src/common BasicTypeSerializer.cpp
  Log:
  Fix for AXISCPP-320. Used %g in place of %f.
  According to the man page of sprintf %f causes the argument to be
  "rounded and converted", %g does not.
  
  Revision  Changes    Path
  1.36      +2 -2      ws-axis/c/src/common/BasicTypeSerializer.cpp
  
  Index: BasicTypeSerializer.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/common/BasicTypeSerializer.cpp,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- BasicTypeSerializer.cpp	12 Nov 2004 11:38:57 -0000	1.35
  +++ BasicTypeSerializer.cpp	13 Dec 2004 02:25:43 -0000	1.36
  @@ -108,12 +108,12 @@
               m_sSZ += m_Buf;
               break;
           case XSD_FLOAT:
  -            AxisSprintf (m_Buf, BTS_BUFFSIZE, "%f", *((float*)(pValue)));
  +            AxisSprintf (m_Buf, BTS_BUFFSIZE, "%g", *((float*)(pValue)));
               m_sSZ += m_Buf;
               break;
           case XSD_DOUBLE:
           case XSD_DECIMAL:
  -            AxisSprintf (m_Buf, BTS_BUFFSIZE, "%f", *((double*)(pValue)));
  +            AxisSprintf (m_Buf, BTS_BUFFSIZE, "%g", *((double*)(pValue)));
               m_sSZ += m_Buf;
               break;
           case XSD_STRING:
  
  
  

Mime
View raw message