From 947b8c0291911f945b695e457b74cc40d711156e Mon Sep 17 00:00:00 2001 From: LordMZTE Date: Sat, 27 Mar 2021 12:47:18 +0100 Subject: [PATCH] fix size type --- src/Utils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Utils.cpp b/src/Utils.cpp index 36406361..c43d6cbe 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp @@ -17,6 +17,7 @@ #include #include +#include #include #include #include @@ -509,7 +510,7 @@ utils::markdownToHtml(const QString &text, bool rainbowify) std::string nodeText(tmp_buf); // create buffer to append rainbow text to std::string buf; - for (int i = 0; i < nodeText.length(); i++) { + for (std::size_t i = 0; i < nodeText.length(); i++) { // Don't rainbowify spaces if (nodeText.at(i) == ' ') { buf.push_back(' ');