aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-11-29 12:34:35 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-11-29 17:11:45 +0300
commit44e73f46d44c10887595a97b0f7554a6daa10cea (patch)
treec93c7e254930970237d2b0b9a5c65f2e655051ae
parent6586a59e63d089f38503656949d7aa8734ca8924 (diff)
Fix VC 'possible loss of data' warning
-rw-r--r--odb/mysql/statement.cxx4
1 files changed, 3 insertions, 1 deletions
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<unsigned long> (text_size)) != 0)
translate_error (conn_, stmt_);
}