[Libreoffice-commits] .: svl/source
Tor Lillqvist
tml at kemper.freedesktop.org
Mon May 16 10:42:39 PDT 2011
svl/source/numbers/zforscan.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit b74081c659b8094bce7702cbae7907e8899d940d
Author: Tor Lillqvist <tlillqvist at novell.com>
Date: Mon May 16 20:40:41 2011 +0300
WaE: comparison between signed and unsigned integer expressions
diff --git a/svl/source/numbers/zforscan.cxx b/svl/source/numbers/zforscan.cxx
index 02910f8..e749029 100644
--- a/svl/source/numbers/zforscan.cxx
+++ b/svl/source/numbers/zforscan.cxx
@@ -1404,7 +1404,7 @@ bool ImpSvNumberformatScan::InsertSymbol( sal_uInt16 & nPos, svt::NfSymbolType e
--nPos; // reuse position
else
{
- if (nAnzStrings + 1 >= NF_MAX_FORMAT_SYMBOLS)
+ if ((size_t) (nAnzStrings + 1) >= NF_MAX_FORMAT_SYMBOLS)
return false;
++nAnzStrings;
for (size_t i = nAnzStrings; i > nPos; --i)
More information about the Libreoffice-commits
mailing list