From: Steve Brokenshire Date: Sun, 2 Aug 2015 18:51:24 +0000 (+0100) Subject: Clarified result of getting length of base64 encoding should be a integer. X-Git-Tag: release-0.05~99 X-Git-Url: http://Server1/repobrowser/?p=xestiaab%2F.git;a=commitdiff_plain;h=49741064286885973537ba6574b05f4709b869c0 Clarified result of getting length of base64 encoding should be a integer. --- diff --git a/source/contacteditor/frmContactEditorKey.cpp b/source/contacteditor/frmContactEditorKey.cpp index 7234bbe..eca7673 100644 --- a/source/contacteditor/frmContactEditorKey.cpp +++ b/source/contacteditor/frmContactEditorKey.cpp @@ -225,7 +225,7 @@ void frmContactEditorKey::ProcessAction( wxCommandEvent& event ) wxString wxSb64orig = txtKeyData->GetValue(); std::string base64new = std::string(wxSb64orig.mb_str()); - std::string base64enc = base64_encode(reinterpret_cast(base64new.c_str()), base64new.length()); + std::string base64enc = base64_encode(reinterpret_cast(base64new.c_str()), (int)base64new.length()); wxString wxSb64key(base64enc.c_str(), wxConvUTF8); KeyListPtr->insert(std::make_pair(KeyListIndex, wxSb64key)); @@ -307,7 +307,7 @@ void frmContactEditorKey::ProcessAction( wxCommandEvent& event ) wxString wxSb64orig = txtKeyData->GetValue(); std::string base64new = std::string(wxSb64orig.mb_str()); - std::string base64enc = base64_encode(reinterpret_cast(base64new.c_str()), base64new.length()); + std::string base64enc = base64_encode(reinterpret_cast(base64new.c_str()), (int)base64new.length()); wxString wxSb64key(base64enc.c_str(), wxConvUTF8); KeyListPtr->erase(KeyListIndex);