comparison 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
comparison
equal deleted inserted replaced
3584:75268c1ea309 3585:113a9643e8bb
119 sqlite3_result_double(context_, value); 119 sqlite3_result_double(context_, value);
120 } 120 }
121 121
122 void FunctionContext::SetStringResult(const std::string& str) 122 void FunctionContext::SetStringResult(const std::string& str)
123 { 123 {
124 sqlite3_result_text(context_, str.data(), str.size(), SQLITE_TRANSIENT); 124 sqlite3_result_text(context_, str.data(), static_cast<int>(str.size()), SQLITE_TRANSIENT);
125 } 125 }
126 } 126 }
127 } 127 }