From 617831dfc953a5bba630163c01fbeda11445ee78 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 11 Dec 2017 21:36:29 +0300 Subject: mir_base64_* => parameters type fix --- plugins/CryptoPP/src/base64.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/CryptoPP/src/base64.cpp') diff --git a/plugins/CryptoPP/src/base64.cpp b/plugins/CryptoPP/src/base64.cpp index 9a855cdb8d..779e33e5b1 100644 --- a/plugins/CryptoPP/src/base64.cpp +++ b/plugins/CryptoPP/src/base64.cpp @@ -2,19 +2,19 @@ string base64encode(const string& buf) { - return (char*)ptrA(mir_base64_encode((PBYTE)buf.data(), (unsigned)buf.length())); + return (char*)ptrA(mir_base64_encode(buf.data(), buf.length())); } string base64decode(const string& buf) { - unsigned len; + size_t len; ptrA plain((char*)mir_base64_decode(buf.data(), &len)); return (plain == NULL) ? string() : string(plain, len); } string base64decode(const char *buf) { - unsigned len; + size_t len; ptrA plain((char*)mir_base64_decode(buf, &len)); return (plain == NULL) ? string() : string(plain, len); } -- cgit v1.2.3