Skip to content

Commit

Permalink
Added explicit type conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
adotkhan committed Aug 14, 2020
1 parent 6159100 commit 1ba777c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<BYTE>& buf) {
Expand Down

0 comments on commit 1ba777c

Please sign in to comment.