Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Commit

Permalink
Fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
gumb0 authored Aug 5, 2019
1 parent 542646b commit 6a66526
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libdevcore/Base64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ static inline byte find_base64_char_index(byte c)
else return 1 + find_base64_char_index('/');
}

string toBase64Encoding(bytesConstRef _in, char const* c_base64_chars, bool _pad)
string toBase64Encoding(bytesConstRef _in, char const* _base64_chars, bool _pad)
{
string ret;
int i = 0;
Expand All @@ -68,7 +68,7 @@ string toBase64Encoding(bytesConstRef _in, char const* c_base64_chars, bool _pad
char_array_4[3] = char_array_3[2] & 0x3f;

for (i = 0; i < 4; i++)
ret += c_base64_chars[char_array_4[i]];
ret += _base64_chars[char_array_4[i]];
i = 0;
}
}
Expand All @@ -84,7 +84,7 @@ string toBase64Encoding(bytesConstRef _in, char const* c_base64_chars, bool _pad
char_array_4[3] = char_array_3[2] & 0x3f;

for (j = 0; j < i + 1; j++)
ret += c_base64_chars[char_array_4[j]];
ret += _base64_chars[char_array_4[j]];

while (i++ < 3 && _pad)
ret += '=';
Expand Down

0 comments on commit 6a66526

Please sign in to comment.