SvTokenStream::nBufPos should be sal_Int32
Change-Id: I929bb6e35a125674b1e65f00e77785b59ae6d2a0
This commit is contained in:
@@ -99,7 +99,7 @@ inline SvToken::SvToken()
|
|||||||
class SvTokenStream
|
class SvTokenStream
|
||||||
{
|
{
|
||||||
sal_uLong nLine, nColumn;
|
sal_uLong nLine, nColumn;
|
||||||
int nBufPos;
|
sal_Int32 nBufPos;
|
||||||
int c; // next character
|
int c; // next character
|
||||||
static const sal_uInt16 nTabSize = 4; // length of tabulator
|
static const sal_uInt16 nTabSize = 4; // length of tabulator
|
||||||
OString aStrTrue;
|
OString aStrTrue;
|
||||||
@@ -138,7 +138,7 @@ class SvTokenStream
|
|||||||
// if end of line spare calculation
|
// if end of line spare calculation
|
||||||
if( 0 != c )
|
if( 0 != c )
|
||||||
{
|
{
|
||||||
sal_uInt16 n = 0;
|
sal_Int32 n = 0;
|
||||||
nColumn = 0;
|
nColumn = 0;
|
||||||
while( n < nBufPos )
|
while( n < nBufPos )
|
||||||
nColumn += aBufStr[n++] == '\t' ? nTabSize : 1;
|
nColumn += aBufStr[n++] == '\t' ? nTabSize : 1;
|
||||||
|
Reference in New Issue
Block a user