~blep/cppunit2/cpptl-integration

« back to all changes in this revision

Viewing changes to include/cpptl/stringtools.h

  • Committer: Baptiste Lepilleur
  • Date: 2009-08-27 17:50:15 UTC
  • mfrom: (467.1.2 cpptl-integration)
  • Revision ID: blep@users.sourceforge.net-20090827175015-op04km4ev3b2x0f5
sync.

Show diffs side-by-side

added added

removed removed

Lines of Context:
215
215
#ifdef __STDC_SECURE_LIB__ // Use secure version with visual studio 2005 to avoid warning.
216
216
       sprintf_s(buffer, sizeof(buffer), "%.*g", precision, v); 
217
217
#else   
218
 
       sprintf(buffer, "%.*g", precision, v); 
 
218
       sprintf(buffer, "%.*Lg", precision, v); 
219
219
#endif
220
220
       return buffer;
221
221
   }