diff options
author | Arnaud Versini <arnaud.versini@gmail.com> | 2015-02-28 18:59:19 +0100 |
---|---|---|
committer | Arnaud Versini <arnaud.versini@libreoffice.org> | 2015-03-25 13:41:25 +0000 |
commit | 8414d8434bd47c1e24c03e9174457c168983cc39 (patch) | |
tree | 7fc4fd59e0202cb6cbd1c5d1f8354894eb24c965 /basic | |
parent | 3e5a3ce0274cc459aed814bb7b03f92330e41827 (diff) |
Basic: scanner should'nt use 0xFF mask on characters
Change-Id: I2fd3f70c3d8e411430f84c7383da7ab8700513bd
Reviewed-on: https://gerrit.libreoffice.org/14682
Reviewed-by: Arnaud Versini <arnaud.versini@libreoffice.org>
Tested-by: Arnaud Versini <arnaud.versini@libreoffice.org>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/comp/scanner.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/comp/scanner.cxx b/basic/source/comp/scanner.cxx index 0afd5f29470b..bddfcbd4f6a7 100644 --- a/basic/source/comp/scanner.cxx +++ b/basic/source/comp/scanner.cxx @@ -505,7 +505,7 @@ bool SbiScanner::NextSym() } } // invalid characters: - else if( ( *pLine & 0xFF ) >= 0x7F ) + else if( *pLine >= 0x7F ) { GenError( SbERR_SYNTAX ); pLine++; nCol++; } |