diff src/string_utils.cpp @ 3:190ded9438c0

Fix many warnings
author Paper <mrpapersonic@gmail.com>
date Sat, 12 Aug 2023 11:57:25 -0400
parents 23d0d9319a00
children 07a9095eaeed
line wrap: on
line diff
--- a/src/string_utils.cpp	Sat Aug 12 03:16:26 2023 -0400
+++ b/src/string_utils.cpp	Sat Aug 12 11:57:25 2023 -0400
@@ -14,7 +14,7 @@
 std::string StringUtils::Implode(const std::vector<std::string>& vector,
                                  const std::string& delimiter) {
 	std::string out = "";
-	for (int i = 0; i < vector.size(); i++) {
+	for (unsigned long long i = 0; i < vector.size(); i++) {
 		out.append(vector.at(i));
 		if (i < vector.size()-1)
 			out.append(delimiter);
@@ -25,7 +25,7 @@
 std::wstring StringUtils::Implode(const std::vector<std::wstring>& vector,
                                   const std::wstring& delimiter) {
 	std::wstring out = L"";
-	for (int i = 0; i < vector.size(); i++) {
+	for (unsigned long long i = 0; i < vector.size(); i++) {
 		out.append(vector.at(i));
 		if (i < vector.size()-1)
 			out.append(delimiter);