[Box Backup-commit] COMMIT r1821 - box/chris/general/lib/common

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Fri Sep 7 21:53:16 BST 2007


Author: chris
Date: 2007-09-07 21:53:16 +0100 (Fri, 07 Sep 2007)
New Revision: 1821

Modified:
   box/chris/general/lib/common/ConversionString.cpp
Log:
Real fix for warning.


Modified: box/chris/general/lib/common/ConversionString.cpp
===================================================================
--- box/chris/general/lib/common/ConversionString.cpp	2007-09-07 20:50:25 UTC (rev 1820)
+++ box/chris/general/lib/common/ConversionString.cpp	2007-09-07 20:53:16 UTC (rev 1821)
@@ -123,7 +123,7 @@
 void BoxConvert::_ConvertIntToString(std::string &rTo, int32_t From)
 {
 	char text[64];	// size more than enough
-	::sprintf(text, "%d", (long)From);
+	::sprintf(text, "%d", (int)From);
 	rTo = text;
 }
 




More information about the Boxbackup-commit mailing list