use div() instead of /0 to content ubsan
for the same reason as...
commit fb2c146752
Author: Eike Rathke <erack@redhat.com>
Date: Mon Jul 25 13:32:17 2016 +0200
use div() instead of /0 to content ubsan
While we do handle double floating point division by 0 at least on
IEEE754 systems, ubsan builds mock about.
Change-Id: Id2e34686b053707c83ca535689b693d80b606533
This commit is contained in:
@@ -1695,7 +1695,7 @@ void ScInterpreter::ScTan()
|
||||
|
||||
void ScInterpreter::ScCot()
|
||||
{
|
||||
PushDouble( div( 1.0, ::rtl::math::tan(GetDouble())));
|
||||
PushDouble(div(1.0, ::rtl::math::tan(GetDouble())));
|
||||
}
|
||||
|
||||
void ScInterpreter::ScArcSin()
|
||||
@@ -1735,7 +1735,7 @@ void ScInterpreter::ScTanHyp()
|
||||
|
||||
void ScInterpreter::ScCotHyp()
|
||||
{
|
||||
PushDouble(1.0 / tanh(GetDouble()));
|
||||
PushDouble(div(1.0, tanh(GetDouble())));
|
||||
}
|
||||
|
||||
void ScInterpreter::ScArcSinHyp()
|
||||
|
Reference in New Issue
Block a user