| author | Julien Nabet <serval2412@yahoo.fr> | 2012-08-06 14:44:44 (GMT) |
|---|---|---|
| committer | Julien Nabet <serval2412@yahoo.fr> | 2012-08-06 14:45:47 (GMT) |
| commit | df579b1f668cd9f9bd6a397d585a08f2d33c5063 (patch) (side-by-side diff) | |
| tree | 42219ba7f3e4ca1b75235057420bbb1164011de1 | |
| parent | 3640fdd74406a0528ebc97f36fad47915da3c6d0 (diff) | |
| download | core-df579b1f668cd9f9bd6a397d585a08f2d33c5063.zip core-df579b1f668cd9f9bd6a397d585a08f2d33c5063.tar.gz | |
Fix "Boolean result is used in bitwise operation"
Change-Id: Ifed0d87da3ac5bd19a0285f1074f2eeec5717f05
| -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 8fb5485..eefa3ab 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++; |
