[Libreoffice-commits] .: basic/source
August Sodora
augsod at kemper.freedesktop.org
Sun Dec 4 14:29:52 PST 2011
basic/source/comp/scanner.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit cc744ef568fed0529da133a9d97e1dec19daab10
Author: August Sodora <augsod at gmail.com>
Date: Sun Dec 4 17:29:16 2011 -0500
Use sal_uInt16 here
diff --git a/basic/source/comp/scanner.cxx b/basic/source/comp/scanner.cxx
index 3b57781..dabeffe 100644
--- a/basic/source/comp/scanner.cxx
+++ b/basic/source/comp/scanner.cxx
@@ -152,7 +152,7 @@ static SbxDataType GetSuffixType( sal_Unicode c )
void SbiScanner::scanGoto()
{
- short nTestCol = nCol;
+ sal_uInt16 nTestCol = nCol;
while(nTestCol < aLine.getLength() && theBasicCharClass::get().isWhitespace(aLine[nTestCol]))
nTestCol++;
@@ -162,7 +162,7 @@ void SbiScanner::scanGoto()
if(aTestSym.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("to")))
{
aSym = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("goto"));
- pLine += (nTestCol - nCol) + 2;
+ pLine += nTestCol + 2 - nCol;
nCol = nTestCol + 2;
}
}
More information about the Libreoffice-commits
mailing list