From d0b85cf10415a378c11d385066bb27116f2c2df1 Mon Sep 17 00:00:00 2001
From: Shahar Hadas <shaharhd@gmail.com>
Date: 周日, 10 5月 2020 19:18:01 +0800
Subject: [PATCH] Fix network detection for Windows OS (#94)

---
 src/library/base/base64.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/library/base/base64.cpp b/src/library/base/base64.cpp
index 2245be1..caa0ddc 100644
--- a/src/library/base/base64.cpp
+++ b/src/library/base/base64.cpp
@@ -49,7 +49,7 @@
 	const unsigned char* bin = (const unsigned char*)binaryData;
 
 	int rc = 0;  // result counter
-	int byteNo;  // I need this after the loop
+	unsigned int byteNo;  // I need this after the loop
 
 	int modulusLen = len % 3;
 	int pad = ((modulusLen & 1) << 1) + ((modulusLen & 2) >> 1);  // 2 gives 1 and 1 gives 2, but 0 gives 0.
@@ -109,7 +109,7 @@
 	const unsigned char* safeAsciiPtr = (const unsigned char*)tmp_str.c_str();
 	std::vector<uint8_t> bin;
 	int cb = 0;
-	int charNo;
+	unsigned int charNo;
 	int pad = 0;
 	size_t len = tmp_str.size();
 

--
Gitblit v1.9.1