mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 23:45:35 +08:00
Explicit cast to avoid compile warning on Win64
This commit is contained in:
committed by
Roland Winklmeier
parent
0d76cc8d3e
commit
631ffdb191
@@ -38,7 +38,7 @@ namespace XSwiftBus
|
||||
{
|
||||
if (text.empty()) { return; }
|
||||
static const std::string ellipsis = "...";
|
||||
int lineLength = m_messages.maxLineLength() - ellipsis.size();
|
||||
const int lineLength = static_cast<int>(m_messages.maxLineLength() - ellipsis.size());
|
||||
std::vector<std::string> wrappedLines;
|
||||
for (size_t i = 0; i < text.size(); i += lineLength)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user