summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorArnaud Versini <arnaud.versini@gmail.com>2015-03-01 13:23:55 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-05-12 09:25:18 +0000
commit7ff58e1a8965606a9fb45153a377b84593746420 (patch)
tree259433931eee142bea1b2eeb357afaa0f634db6c /basic
parent443d5205d22aa952f8b6975a96ffe8dc0e24d409 (diff)
Basic: Doesn't allow non ASCII characters in numeric literals
Change-Id: I8b7755dbea56953a04cd7687181ec246fc680c43 Reviewed-on: https://gerrit.libreoffice.org/14691 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'basic')
-rw-r--r--basic/source/comp/scanner.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/comp/scanner.cxx b/basic/source/comp/scanner.cxx
index 13d37c8de65a..2e20a0e7f25b 100644
--- a/basic/source/comp/scanner.cxx
+++ b/basic/source/comp/scanner.cxx
@@ -438,7 +438,7 @@ bool SbiScanner::NextSym()
// e.g. -2,147,483,648 through 2,147,483,647 (signed)
sal_uInt64 lu = 0;
bool bOverflow = false;
- while(nCol < aLine.getLength() && theBasicCharClass::get().isAlphaNumeric(aLine[nCol], bCompatible))
+ while(nCol < aLine.getLength() && theBasicCharClass::get().isAlphaNumeric(aLine[nCol], false))
{
sal_Unicode ch = rtl::toAsciiUpperCase(aLine[nCol]);
++pLine; ++nCol;