Skip to content

Commit e892dc1

Browse files
committed
Use prefix operator in for loop of DecodeBase58.
1 parent 159ed95 commit e892dc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/base58.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ bool DecodeBase58(const char* psz, std::vector<unsigned char>& vch)
4242
// Apply "b256 = b256 * 58 + ch".
4343
int carry = ch - pszBase58;
4444
int i = 0;
45-
for (std::vector<unsigned char>::reverse_iterator it = b256.rbegin(); (carry != 0 || i < length) && (it != b256.rend()); it++, i++) {
45+
for (std::vector<unsigned char>::reverse_iterator it = b256.rbegin(); (carry != 0 || i < length) && (it != b256.rend()); ++it, ++i) {
4646
carry += 58 * (*it);
4747
*it = carry % 256;
4848
carry /= 256;

0 commit comments

Comments
 (0)