From 09714ea39a998ca7ea6f35d500691ffc36fb8237 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Mon, 3 Aug 2015 21:24:03 +0100 Subject: [PATCH] Swapped int for size_t for the in_len variable. --- source/common/base64.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/common/base64.cpp b/source/common/base64.cpp index 2f85449..8686fa6 100644 --- a/source/common/base64.cpp +++ b/source/common/base64.cpp @@ -82,7 +82,10 @@ std::string base64_encode(unsigned char const* bytes_to_encode, unsigned int in_ } std::string base64_decode(std::string const& encoded_string) { - int in_len = encoded_string.size(); +/* + Modified change: swapped 'int in_len' to 'size_t in_len' + */ + size_t in_len = encoded_string.size(); int i = 0; int j = 0; int in_ = 0; -- 2.39.2