Fix typo in code
It passed "make check" on Linux Change-Id: Idd33e9f70c9552c341b4d312bc33135f758715b6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103449 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
committed by
Julien Nabet
parent
2cddaa6e19
commit
e0ce9ec1a5
@@ -4268,15 +4268,15 @@ void SbiRuntime::StepSTMNT( sal_uInt32 nOp1, sal_uInt32 nOp2 )
|
|||||||
if( !bInError )
|
if( !bInError )
|
||||||
{
|
{
|
||||||
// (there's a difference here in case of a jump out of a loop)
|
// (there's a difference here in case of a jump out of a loop)
|
||||||
sal_uInt16 nExspectedForLevel = static_cast<sal_uInt16>( nOp2 / 0x100 );
|
sal_uInt16 nExpectedForLevel = static_cast<sal_uInt16>( nOp2 / 0x100 );
|
||||||
if( !pGosubStk.empty() )
|
if( !pGosubStk.empty() )
|
||||||
{
|
{
|
||||||
nExspectedForLevel = nExspectedForLevel + pGosubStk.back().nStartForLvl;
|
nExpectedForLevel = nExpectedForLevel + pGosubStk.back().nStartForLvl;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if the actual for-level is too small it'd jump out
|
// if the actual for-level is too small it'd jump out
|
||||||
// of a loop -> corrected
|
// of a loop -> corrected
|
||||||
while( nForLvl > nExspectedForLevel )
|
while( nForLvl > nExpectedForLevel )
|
||||||
{
|
{
|
||||||
PopFor();
|
PopFor();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user