summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorAugust Sodora <augsod@gmail.com>2011-12-04 17:29:16 -0500
committerAugust Sodora <augsod@gmail.com>2011-12-04 17:29:16 -0500
commitcc744ef568fed0529da133a9d97e1dec19daab10 (patch)
tree352850ddd43b76dd1a2fd5aaf4648f7ed77fbe84 /basic
parent6ddc99b1dd4d64842ed7fca35b991b8cde8a724c (diff)
Use sal_uInt16 here
Diffstat (limited to 'basic')
-rw-r--r--basic/source/comp/scanner.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/comp/scanner.cxx b/basic/source/comp/scanner.cxx
index 3b57781febd0..dabeffeb821e 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;
}
}