r23184 by jghali - Fix signed/unsigned comparison warning
scribus-commit
scribus-commit at lists.scribus.net
Thu Sep 5 04:13:44 UTC 2019
Author: jghali
Date: Thu Sep 5 04:13:43 2019
New Revision: 23184
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23184
Log:
Fix signed/unsigned comparison warning
Modified:
trunk/Scribus/scribus/text/storytext.cpp
Modified: trunk/Scribus/scribus/text/storytext.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23184&path=/trunk/Scribus/scribus/text/storytext.cpp
==============================================================================
--- trunk/Scribus/scribus/text/storytext.cpp (original)
+++ trunk/Scribus/scribus/text/storytext.cpp Thu Sep 5 04:13:43 2019
@@ -555,7 +555,7 @@
if (pos + static_cast<int>(len) > length())
len = length() - pos;
- if (pos == 0 && len > 0 && len == length())
+ if ((pos == 0) && (len > 0) && (static_cast<int>(len) == length()))
{
int lastChar = length() - 1;
while (lastChar > 0 && text(lastChar) == SpecialChars::PARSEP)
@@ -576,7 +576,7 @@
--m_selLast;
if (i < m_selFirst)
--m_selFirst;
- if (static_cast<uint>(i + 1 ) <= d->cursorPosition && d->cursorPosition > 0)
+ if (static_cast<uint>(i + 1) <= d->cursorPosition && d->cursorPosition > 0)
d->cursorPosition -= 1;
}
More information about the scribus-commit
mailing list