diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-09-18 14:24:56 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-09-18 14:24:56 +0100 |
commit | 7b56849be41fdd342c8d92c243df6370a53c8305 (patch) | |
tree | 47621c380edfd8adc779caab5d961868be78526c /libmysqlpp/my-modifycommand.cpp | |
parent | Replace straggling typedef (diff) | |
download | libdbpp-mysql-7b56849be41fdd342c8d92c243df6370a53c8305.tar.bz2 libdbpp-mysql-7b56849be41fdd342c8d92c243df6370a53c8305.tar.xz libdbpp-mysql-7b56849be41fdd342c8d92c243df6370a53c8305.zip |
Add JT recommended warnings
Diffstat (limited to 'libmysqlpp/my-modifycommand.cpp')
-rw-r--r-- | libmysqlpp/my-modifycommand.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<unsigned int>(rows); } |