aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-10-07 16:00:17 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-10-07 16:00:17 +0300
commit4e051c334e8a9802a40d7313ee68d5977abc74e0 (patch)
tree168b1f93a23bcac8a44c34d4ff5a518dda41fa7a
parent8057cb95943b8dcd62d723b735098690fd662a69 (diff)
Get rid of VC 'possible loss of data' warnings
-rw-r--r--odb/pgsql/statement.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/odb/pgsql/statement.cxx b/odb/pgsql/statement.cxx
index 2584e08..45f0125 100644
--- a/odb/pgsql/statement.cxx
+++ b/odb/pgsql/statement.cxx
@@ -653,7 +653,7 @@ namespace odb
handle_.reset (
PQexecPrepared (conn_.handle (),
name_,
- in ? native_param_->count : 0,
+ in ? static_cast<int> (native_param_->count) : 0,
in ? native_param_->values : 0,
in ? native_param_->lengths : 0,
in ? native_param_->formats : 0,
@@ -778,7 +778,7 @@ namespace odb
auto_handle<PGresult> h (
PQexecPrepared (conn_.handle (),
name_,
- native_param_.count,
+ static_cast<int> (native_param_.count),
native_param_.values,
native_param_.lengths,
native_param_.formats,
@@ -870,7 +870,7 @@ namespace odb
auto_handle<PGresult> h (
PQexecPrepared (conn_.handle (),
name_,
- native_param_.count,
+ static_cast<int> (native_param_.count),
native_param_.values,
native_param_.lengths,
native_param_.formats,
@@ -959,7 +959,7 @@ namespace odb
auto_handle<PGresult> h (
PQexecPrepared (conn_.handle (),
name_,
- native_param_.count,
+ static_cast<int> (native_param_.count),
native_param_.values,
native_param_.lengths,
native_param_.formats,