Skip to content

Commit

Permalink
Merge pull request #8 from adotkhan/master
Browse files Browse the repository at this point in the history
Added explicit type conversion
  • Loading branch information
adam-p committed Aug 14, 2020
2 parents 6159100 + 1ba777c commit 5d003b4
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 5d003b4

Please sign in to comment.