From c25edfb75a65b80a0e0c43bbaf59c7cd806f0b5b Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 30 Mar 2019 11:43:04 +0000 Subject: Tidy fixes for latest clang --- libmysqlpp/my-connection.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libmysqlpp/my-connection.cpp') diff --git a/libmysqlpp/my-connection.cpp b/libmysqlpp/my-connection.cpp index 135ef34..e5193ac 100644 --- a/libmysqlpp/my-connection.cpp +++ b/libmysqlpp/my-connection.cpp @@ -167,7 +167,7 @@ namespace MySQL { return ctx->bufOff; } } - unsigned int copy = std::min(ctx->loadBufLen - ctx->bufOff, bufSize); + auto copy = std::min(ctx->loadBufLen - ctx->bufOff, bufSize); memcpy(buf, ctx->loadBuf + ctx->bufOff, copy); ctx->bufOff += copy; return copy; @@ -186,8 +186,8 @@ namespace MySQL { } const char * loadBuf; - unsigned int loadBufLen; - int bufOff; + size_t loadBufLen; + size_t bufOff; MYSQL * conn; int loadReturn; }; -- cgit v1.2.3