Kaydet (Commit) ec60a59a authored tarafından Stephan Bergmann's avatar Stephan Bergmann

-Werror,-Wabsolute-value

("using integer absolute value function 'abs' when argument is of floating point
type; use function 'std::abs' instead")

Change-Id: I3634186a10607f3b3fc6fc7c0aef968b32892156
üst f0cef70c
......@@ -570,14 +570,14 @@ sal_uInt16 ParaSpline(sal_uInt16 n, double* x, double* y, sal_uInt8 MargCond,
if (y[n]!=y[0]) return 4;
} break;
case 4: {
if (abs(Marg01)>=MAXROOT) {
if (std::abs(Marg01)>=MAXROOT) {
alphX=0.0;
alphY=std::copysign(1.0,y[1]-y[0]);
} else {
alphX=std::copysign(sqrt(1.0/(1.0+Marg01*Marg01)),x[1]-x[0]);
alphY=alphX*Marg01;
}
if (abs(MargN1)>=MAXROOT) {
if (std::abs(MargN1)>=MAXROOT) {
betX=0.0;
betY=std::copysign(1.0,y[n]-y[n-1]);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment