From 7b56849be41fdd342c8d92c243df6370a53c8305 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 18 Sep 2021 14:24:56 +0100 Subject: Add JT recommended warnings --- libmysqlpp/my-modifycommand.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libmysqlpp/my-modifycommand.cpp') diff --git a/libmysqlpp/my-modifycommand.cpp b/libmysqlpp/my-modifycommand.cpp index dd607b3..9714638 100644 --- a/libmysqlpp/my-modifycommand.cpp +++ b/libmysqlpp/my-modifycommand.cpp @@ -15,9 +15,9 @@ MySQL::ModifyCommand::execute(bool anc) if (mysql_stmt_execute(stmt.get())) { throw Error(stmt.get()); } - int rows = mysql_stmt_affected_rows(stmt.get()); + auto rows = mysql_stmt_affected_rows(stmt.get()); if (rows == 0 && !anc) { throw DB::NoRowsAffected(); } - return rows; + return static_cast(rows); } -- cgit v1.2.3