Kaydet (Commit) 986a0f4e authored tarafından Noel Power's avatar Noel Power

fdo#54718 fix opcode detection in basic resulting in failed/unregcognized code

fix is followup to bf5b4931 which didn't adjust the runtime to
cater for the new enum layout

Change-Id: I6613fb8aacd8a70947c4fff556fb3e2d33c1113e
üst a93e92ba
......@@ -702,17 +702,17 @@ 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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment