diff Core/SQLite/FunctionContext.cpp @ 3585:113a9643e8bb

Suppressed a few warnings when building with emscripten (clang) + numeric truncation warnings
author Benjamin Golinvaux <bgo@osimis.io>
date Mon, 02 Dec 2019 10:59:40 +0100
parents fa5ad4368fe3
children
line wrap: on
line diff
--- a/Core/SQLite/FunctionContext.cpp	Sun Dec 01 11:12:48 2019 +0100
+++ b/Core/SQLite/FunctionContext.cpp	Mon Dec 02 10:59:40 2019 +0100
@@ -121,7 +121,7 @@
 
     void FunctionContext::SetStringResult(const std::string& str)
     {
-      sqlite3_result_text(context_, str.data(), str.size(), SQLITE_TRANSIENT);
+      sqlite3_result_text(context_, str.data(), static_cast<int>(str.size()), SQLITE_TRANSIENT);
     }
   }
 }