Use correct type conversion of size_t for 64b arch 12/52612/1 accepted/tizen/mobile/20151125.072324 accepted/tizen/tv/20151125.072334 accepted/tizen/wearable/20151125.072347 submit/tizen/20151125.053149
authorKyungwook Tak <k.tak@samsung.com>
Wed, 25 Nov 2015 05:28:34 +0000 (14:28 +0900)
committerKyungwook Tak <k.tak@samsung.com>
Wed, 25 Nov 2015 05:28:34 +0000 (14:28 +0900)
Change-Id: I3dba4c5cd60ce2ca949533dd2f30faa3319378d2
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
tests/dpl/src/test_results_collector.cpp
vcore/vcore/XmlsecAdapter.cpp

index e64da8a..e9fc15b 100644 (file)
@@ -221,22 +221,22 @@ class ConsoleCollector :
         using namespace VcoreDPL::Colors::Text;
         printf("\n%sResults [%s]: %s\n", BOLD_GREEN_BEGIN,
                title.c_str(), BOLD_GREEN_END);
-        printf("%s%s%3d%s\n",
+        printf("%s%s%3zu%s\n",
                CYAN_BEGIN,
                "Total tests:            ",
                stats.GetTotal(),
                CYAN_END);
-        printf("  %s%s%3d%s\n",
+        printf("  %s%s%3zu%s\n",
                CYAN_BEGIN,
                "Succeeded:            ",
                stats.GetPassed(),
                CYAN_END);
-        printf("  %s%s%3d%s\n",
+        printf("  %s%s%3zu%s\n",
                CYAN_BEGIN,
                "Failed:               ",
                stats.GetFailed(),
                CYAN_END);
-        printf("  %s%s%3d%s\n",
+        printf("  %s%s%3zu%s\n",
                CYAN_BEGIN,
                "Ignored:              ",
                stats.GetIgnored(),
@@ -401,16 +401,16 @@ class HtmlCollector :
             m_fp.Get(), "\n%sResults [%s]:%s\n", BOLD_GREEN_BEGIN,
             name.c_str(), BOLD_GREEN_END);
         fprintf(
-            m_fp.Get(), "%s%s%3d%s\n", CYAN_BEGIN,
+            m_fp.Get(), "%s%s%3zu%s\n", CYAN_BEGIN,
             "Total tests:            ", stats.GetTotal(), CYAN_END);
         fprintf(
-            m_fp.Get(), "  %s%s%3d%s\n", CYAN_BEGIN,
+            m_fp.Get(), "  %s%s%3zu%s\n", CYAN_BEGIN,
             "Succeeded:            ", stats.GetPassed(), CYAN_END);
         fprintf(
-            m_fp.Get(), "  %s%s%3d%s\n", CYAN_BEGIN,
+            m_fp.Get(), "  %s%s%3zu%s\n", CYAN_BEGIN,
             "Failed:               ", stats.GetFailed(), CYAN_END);
         fprintf(
-            m_fp.Get(), "  %s%s%3d%s\n", CYAN_BEGIN,
+            m_fp.Get(), "  %s%s%3zu%s\n", CYAN_BEGIN,
             "Ignored:              ", stats.GetIgnored(), CYAN_END);
     }
 
index e77a5d7..8b09326 100644 (file)
@@ -352,7 +352,7 @@ void XmlSec::loadDERCertificateMemory(XmlSecContext &context, xmlSecKeysMngrPtr
     if (xmlSecCryptoAppKeysMngrCertLoadMemory(
             mngrPtr,
             reinterpret_cast<const xmlSecByte *>(derCert.data()),
-            reinterpret_cast<xmlSecSize>(derCert.length()),
+            static_cast<xmlSecSize>(derCert.length()),
             xmlSecKeyDataFormatDer,
             xmlSecKeyDataTypeTrusted) < 0)
         ThrowMsg(Exception::InternalError, "Failed to load der cert from memory.");