r24703 by jghali - Fix signed/unsigned comparison warning
scribus-commit
scribus-commit at lists.scribus.net
Tue Aug 24 20:07:43 UTC 2021
Author: jghali
Date: Tue Aug 24 20:07:43 2021
New Revision: 24703
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24703
Log:
Fix signed/unsigned comparison warning
Modified:
trunk/Scribus/scribus/pageitemiterator.cpp
Modified: trunk/Scribus/scribus/pageitemiterator.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24703&path=/trunk/Scribus/scribus/pageitemiterator.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitemiterator.cpp (original)
+++ trunk/Scribus/scribus/pageitemiterator.cpp Tue Aug 24 20:07:43 2021
@@ -66,7 +66,7 @@
m_options = options;
m_stateStack.resize(0); // Not clear in order to keep the already allocated memory available
- int stackItemCount = doc->docPatterns.count() + 3;
+ size_t stackItemCount = static_cast<size_t>(doc->docPatterns.count() + 3);
if (m_stateStack.capacity() < stackItemCount)
m_stateStack.reserve(stackItemCount);
More information about the scribus-commit
mailing list