File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ class DecimalContext : public decContext
62
62
init (DEC_INIT_DECIMAL128);
63
63
}
64
64
65
- ~DecimalContext ()
65
+ ~DecimalContext () noexcept ( false )
66
66
{
67
67
// Typically excptions should better be not thrown from destructors.
68
68
// But in our case there should never be any exception raised inside
@@ -82,10 +82,11 @@ class DecimalContext : public decContext
82
82
{
83
83
if (mask & unmaskedExceptions)
84
84
{
85
- decContextRestoreStatus (this , mask, ~ 0 );
85
+ decContextSetStatusQuiet (this , mask);
86
86
const char * statusString = decContextStatusToString (this );
87
- (Arg::Gds (isc_random) << " DecFloat error" <<
88
- Arg::Gds (isc_random) << statusString).raise ();
87
+ decContextSetStatusQuiet (this , 0 );
88
+ (Arg::Gds (isc_random) << " Decimal float error" <<
89
+ Arg::Gds (isc_random) << statusString).raise ();
89
90
}
90
91
}
91
92
}
You can’t perform that action at this time.
0 commit comments