[Libreoffice-commits] core.git: basic/source

Arnaud Versini arnaud.versini at gmail.com
Wed Mar 25 06:41:51 PDT 2015


 basic/source/comp/scanner.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8414d8434bd47c1e24c03e9174457c168983cc39
Author: Arnaud Versini <arnaud.versini at gmail.com>
Date:   Sat Feb 28 18:59:19 2015 +0100

    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 at libreoffice.org>
    Tested-by: Arnaud Versini <arnaud.versini at libreoffice.org>

diff --git a/basic/source/comp/scanner.cxx b/basic/source/comp/scanner.cxx
index 0afd5f2..bddfcbd4 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++;
     }


More information about the Libreoffice-commits mailing list