From e892dc1268d33bfba01f35b70359b286bb9d6376 Mon Sep 17 00:00:00 2001 From: Jiaxing Wang Date: Fri, 16 Sep 2016 19:13:01 +0800 Subject: [PATCH] Use prefix operator in for loop of DecodeBase58. --- src/base58.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base58.cpp b/src/base58.cpp index 405b67c153..f7768b5a64 100644 --- a/src/base58.cpp +++ b/src/base58.cpp @@ -42,7 +42,7 @@ bool DecodeBase58(const char* psz, std::vector& vch) // Apply "b256 = b256 * 58 + ch". int carry = ch - pszBase58; int i = 0; - for (std::vector::reverse_iterator it = b256.rbegin(); (carry != 0 || i < length) && (it != b256.rend()); it++, i++) { + for (std::vector::reverse_iterator it = b256.rbegin(); (carry != 0 || i < length) && (it != b256.rend()); ++it, ++i) { carry += 58 * (*it); *it = carry % 256; carry /= 256;