summary refs log tree commit diff
path: root/src/Utils.cpp
diff options
context:
space:
mode:
authorLordMZTE <lord@mzte.de>2021-03-27 12:47:18 +0100
committerLordMZTE <lord@mzte.de>2021-03-27 12:47:18 +0100
commit947b8c0291911f945b695e457b74cc40d711156e (patch)
treef5d738c3396b2619859875522ade0aaac641c8df /src/Utils.cpp
parentadd /rainbow command (diff)
downloadnheko-947b8c0291911f945b695e457b74cc40d711156e.tar.xz
fix size type
Diffstat (limited to 'src/Utils.cpp')
-rw-r--r--src/Utils.cpp3
1 files changed, 2 insertions, 1 deletions
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 <QTextDocument>
 #include <QXmlStreamReader>
 
+#include <bits/c++config.h>
 #include <cmath>
 #include <fmt/core.h>
 #include <variant>
@@ -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(' ');