diff options
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/sbx/sbxint.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
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; |