From ece1af8c7f9f176b24ba976480518050af087e9e Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Fri, 1 Mar 2013 05:34:37 +0100 Subject: coverity#736108: nesting level mismatch Change-Id: I6e6a3baa5aba5591a40fd236e7a2056fb59d6977 --- basic/source/sbx/sbxint.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'basic') diff --git a/basic/source/sbx/sbxint.cxx b/basic/source/sbx/sbxint.cxx index dc8cd944ba63..7713c7621948 100644 --- a/basic/source/sbx/sbxint.cxx +++ b/basic/source/sbx/sbxint.cxx @@ -881,7 +881,10 @@ start: *p->pDouble = ImpSalUInt64ToDouble( n ); break; case SbxBYREF | SbxCURRENCY: if ( n > ( SbxMAXSALINT64 / CURRENCY_FACTOR ) ) - SbxBase::SetError( SbxERR_OVERFLOW ); n = SbxMAXSALINT64; + { + SbxBase::SetError( SbxERR_OVERFLOW ); + n = SbxMAXSALINT64; + } *p->pnInt64 = ( sal_Int64) ( n * CURRENCY_FACTOR ); break; case SbxBYREF | SbxSALUINT64: *p->puInt64 = n; break; -- cgit