From 44e73f46d44c10887595a97b0f7554a6daa10cea Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 29 Nov 2017 12:34:35 +0300 Subject: Fix VC 'possible loss of data' warning --- odb/mysql/statement.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/odb/mysql/statement.cxx b/odb/mysql/statement.cxx index 8606754..2ad4eb0 100644 --- a/odb/mysql/statement.cxx +++ b/odb/mysql/statement.cxx @@ -121,7 +121,9 @@ namespace odb t->prepare (conn_, *this); } - if (mysql_stmt_prepare (stmt_, text_, text_size) != 0) + if (mysql_stmt_prepare (stmt_, + text_, + static_cast (text_size)) != 0) translate_error (conn_, stmt_); } -- cgit v1.1