basic/source/comp/scanner.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 0bcc6c93b8dbd92f7f13ea40c464636b00be0d6f Author: August Sodora <aug...@gmail.com> Date: Sun Dec 4 18:08:28 2011 -0500 Use appropriate datatypes here too diff --git a/basic/source/comp/scanner.cxx b/basic/source/comp/scanner.cxx index dabeffe..cc17fd5 100644 --- a/basic/source/comp/scanner.cxx +++ b/basic/source/comp/scanner.cxx @@ -240,7 +240,7 @@ bool SbiScanner::NextSym() { pLine++; goto eoln; } bSymbol = true; - short n = nCol; + sal_uInt16 n = nCol; for ( ; (theBasicCharClass::get().isAlphaNumeric( *pLine, bCompatible ) || ( *pLine == '_' ) ); pLine++ ) nCol++; aSym = aLine.copy( n, nCol - n ); @@ -424,7 +424,7 @@ bool SbiScanner::NextSym() sal_Unicode cSep = *pLine; if( cSep == '[' ) bSymbol = true, cSep = ']'; - short n = nCol+1; + sal_uInt16 n = nCol + 1; while( *pLine ) { do pLine++, nCol++; @@ -460,7 +460,7 @@ bool SbiScanner::NextSym() // other groups: else { - short n = 1; + sal_uInt8 n = 1; switch( *pLine++ ) { case '<': if( *pLine == '>' || *pLine == '=' ) n = 2; break; _______________________________________________ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits