diff options
Diffstat (limited to 'sc/source/core/tool/interpr2.cxx')
-rw-r--r-- | sc/source/core/tool/interpr2.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/tool/interpr2.cxx b/sc/source/core/tool/interpr2.cxx index 7042189beb4d..949bc9f2647d 100644 --- a/sc/source/core/tool/interpr2.cxx +++ b/sc/source/core/tool/interpr2.cxx @@ -800,7 +800,7 @@ void ScInterpreter::ScCeil() sal_uInt8 nParamCount = GetByte(); if ( MustHaveParamCount( nParamCount, 2, 3 ) ) { - bool bAbs = ( nParamCount == 3 ? GetBool() : false ); + bool bAbs = nParamCount == 3 && GetBool(); double fDec = GetDouble(); double fVal = GetDouble(); if ( fDec == 0.0 ) @@ -845,7 +845,7 @@ void ScInterpreter::ScFloor() sal_uInt8 nParamCount = GetByte(); if ( MustHaveParamCount( nParamCount, 2, 3 ) ) { - bool bAbs = ( nParamCount == 3 ? GetBool() : false ); + bool bAbs = nParamCount == 3 && GetBool(); double fDec = GetDouble(); double fVal = GetDouble(); if ( fDec == 0.0 ) |