summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorMichael Stahl <mst@openoffice.org>2012-08-02 12:07:32 +0200
committerPetr Mladek <pmladek@suse.cz>2012-08-02 15:38:29 +0200
commitb21ac0f0c6782804fad58a070e5b84aac711bc18 (patch)
treeb9571acd2177f7f7c90a4d04033784634e2ac61c /basic
parentf15f1a61e4a5ccfacc8a0df78241ca205015ce3d (diff)
basic, cui, extensions, filter, vcl: fix some warnings
Signed-off-by: Petr Mladek <pmladek@suse.cz>
Diffstat (limited to 'basic')
-rw-r--r--basic/source/runtime/runtime.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx
index 7fe3b1768e39..281f0a9990b0 100644
--- a/basic/source/runtime/runtime.cxx
+++ b/basic/source/runtime/runtime.cxx
@@ -711,17 +711,17 @@ sal_Bool SbiRuntime::Step()
SbiOpcode eOp = (SbiOpcode ) ( *pCode++ );
sal_uInt32 nOp1, nOp2;
- if( eOp <= SbOP0_END )
+ if (eOp < SbOP0_END)
{
(this->*( aStep0[ eOp ] ) )();
}
- else if( eOp >= SbOP1_START && eOp <= SbOP1_END )
+ else if (eOp >= SbOP1_START && eOp < SbOP1_END)
{
nOp1 = *pCode++; nOp1 |= *pCode++ << 8; nOp1 |= *pCode++ << 16; nOp1 |= *pCode++ << 24;
(this->*( aStep1[ eOp - SbOP1_START ] ) )( nOp1 );
}
- else if( eOp >= SbOP2_START && eOp <= SbOP2_END )
+ else if (eOp >= SbOP2_START && eOp < SbOP2_END)
{
nOp1 = *pCode++; nOp1 |= *pCode++ << 8; nOp1 |= *pCode++ << 16; nOp1 |= *pCode++ << 24;
nOp2 = *pCode++; nOp2 |= *pCode++ << 8; nOp2 |= *pCode++ << 16; nOp2 |= *pCode++ << 24;