diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-08-06 16:44:44 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-08-06 16:45:47 +0200 |
commit | df579b1f668cd9f9bd6a397d585a08f2d33c5063 (patch) | |
tree | 42219ba7f3e4ca1b75235057420bbb1164011de1 /basic | |
parent | 3640fdd74406a0528ebc97f36fad47915da3c6d0 (diff) |
Fix "Boolean result is used in bitwise operation"
Change-Id: Ifed0d87da3ac5bd19a0285f1074f2eeec5717f05
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/comp/scanner.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/basic/source/comp/scanner.cxx b/basic/source/comp/scanner.cxx index 8fb5485588e8..eefa3aba2b55 100644 --- a/basic/source/comp/scanner.cxx +++ b/basic/source/comp/scanner.cxx @@ -94,8 +94,7 @@ void SbiScanner::GenError( SbError code ) } bRes = pBasic->CError( code, aError, nLine, nc, nCol2 ); } - bAbort |= !bRes | - ( code == SbERR_NO_MEMORY || code == SbERR_PROG_TOO_LARGE ); + bAbort = bAbort || !bRes || ( code == SbERR_NO_MEMORY || code == SbERR_PROG_TOO_LARGE ); } if( bErrors ) nErrors++; |