[mapguide-commits] r8745 - sandbox/VC140/Server/src/Gws/GwsQueryEngine

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Mon Aug 17 03:03:07 PDT 2015


Author: christinebao
Date: 2015-08-17 03:03:07 -0700 (Mon, 17 Aug 2015)
New Revision: 8745

Modified:
   sandbox/VC140/Server/src/Gws/GwsQueryEngine/GwsBatchSortedBlockJoinQueryResults.cpp
Log:
RFC 150: MapGuide RFC 150 - Support Visual Studio 2015 
http://trac.osgeo.org/mapguide/wiki/MapGuideRfc150

Fix build warning of printf expects int but variable is size_t. Fix it by convert size_t to int.

Modified: sandbox/VC140/Server/src/Gws/GwsQueryEngine/GwsBatchSortedBlockJoinQueryResults.cpp
===================================================================
--- sandbox/VC140/Server/src/Gws/GwsQueryEngine/GwsBatchSortedBlockJoinQueryResults.cpp	2015-08-17 09:33:33 UTC (rev 8744)
+++ sandbox/VC140/Server/src/Gws/GwsQueryEngine/GwsBatchSortedBlockJoinQueryResults.cpp	2015-08-17 10:03:07 UTC (rev 8745)
@@ -1592,7 +1592,7 @@
                 val = primaryCacheEntry->primaryKey->ToString();
             }
 
-            printf("%d) Key=%S  Properties=%d\n", i+1, val, primaryCacheEntry->propertyCollection.size());
+            printf_s("%d) Key=%S  Properties=%d\n", (int)i+1, val, (int)primaryCacheEntry->propertyCollection.size());
             for(size_t j=0;j<primaryCacheEntry->propertyCollection.size();j++)
             {
                 PropertyCacheEntry* propertyCacheEntry = primaryCacheEntry->propertyCollection[j];



More information about the mapguide-commits mailing list