summaryrefslogtreecommitdiff
path: root/libs/litehtml/src/document_container.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/litehtml/src/document_container.cpp')
-rw-r--r--libs/litehtml/src/document_container.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/litehtml/src/document_container.cpp b/libs/litehtml/src/document_container.cpp
index d3802473e1..2fb601efe4 100644
--- a/libs/litehtml/src/document_container.cpp
+++ b/libs/litehtml/src/document_container.cpp
@@ -16,7 +16,7 @@ void litehtml::document_container::split_text(const char* text, const std::funct
on_word(wchar_to_utf8(str.c_str()));
str.clear();
}
- str += c;
+ str += (wchar_t)c;
on_space(wchar_to_utf8(str.c_str()));
str.clear();
}
@@ -28,13 +28,13 @@ void litehtml::document_container::split_text(const char* text, const std::funct
on_word(wchar_to_utf8(str.c_str()));
str.clear();
}
- str += c;
+ str += (wchar_t)c;
on_word(wchar_to_utf8(str.c_str()));
str.clear();
}
else
{
- str += c;
+ str += (wchar_t)c;
}
}
if (!str.empty())