From 8193b47ceb4c1d2044b6a09f08d795b711704726 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 13 Oct 2019 14:13:40 +0100 Subject: Fix literal booleans --- libmysqlpp/my-command.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libmysqlpp/my-command.cpp') diff --git a/libmysqlpp/my-command.cpp b/libmysqlpp/my-command.cpp index 380d1f9..e15a3c1 100644 --- a/libmysqlpp/my-command.cpp +++ b/libmysqlpp/my-command.cpp @@ -116,7 +116,7 @@ MySQL::Command::bindParamS(unsigned int n, const std::string_view & s) binds[n].buffer = realloc(binds[n].buffer, s.length()); s.copy(static_cast(binds[n].buffer), s.length(), 0); binds[n].buffer_length = s.length(); - binds[n].is_unsigned = 0; + binds[n].is_unsigned = false; } void MySQL::Command::bindParamT(unsigned int n, const boost::posix_time::ptime & v) @@ -132,7 +132,7 @@ MySQL::Command::bindParamT(unsigned int n, const boost::posix_time::ptime & v) ts.minute = v.time_of_day().minutes(); ts.second = v.time_of_day().seconds(); ts.second_part = v.time_of_day().total_microseconds() % 1000000; - ts.neg = 0; + ts.neg = false; } void MySQL::Command::bindParamT(unsigned int n, const boost::posix_time::time_duration & v) -- cgit v1.2.3