From 1ba777c0982f326685f8e8835ff906d0fcc30a39 Mon Sep 17 00:00:00 2001 From: Amir Khan Date: Fri, 14 Aug 2020 15:52:10 -0400 Subject: [PATCH] Added explicit type conversion --- base64.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base64.cpp b/base64.cpp index 98059de..1f44256 100644 --- a/base64.cpp +++ b/base64.cpp @@ -43,7 +43,7 @@ static const char to_base64[] = std::string B64Encode(const std::string& buf) { if (buf.empty()) return ""; - return B64Encode((const unsigned char*)buf.c_str(), buf.size()); + return B64Encode((const unsigned char*)buf.c_str(), (unsigned int)buf.size()); } std::string B64Encode(const std::vector& buf) {