# HG changeset patch # User John W. Eaton # Date 1213379716 14400 # Node ID 76142609e8d2002346cf715a15295e98a789a55c # Parent c123bd09172e587461bb7e51a594c64f5e618062 Remove some float-functions ambiguities. diff --git a/liboctave/ChangeLog b/liboctave/ChangeLog --- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,8 @@ +2008-06-13 Michael Goffioul + + * lo-mappers.cc (arg): Remove ambiguity about atan2(float,float) usage. + * fCmplxDET.cc (FloatComplexDET::initialize10): Likewise, for pow. + 2008-06-11 John W. Eaton * so-array.h, so-array.cc, Array-so.cc: Delete. diff --git a/liboctave/fCmplxDET.cc b/liboctave/fCmplxDET.cc --- a/liboctave/fCmplxDET.cc +++ b/liboctave/fCmplxDET.cc @@ -57,7 +57,7 @@ float etmp = e2 / xlog2 (static_cast(10)); e10 = static_cast (xround (etmp)); etmp -= e10; - c10 = c2 * static_cast (pow (10.0, etmp)); + c10 = c2 * static_cast (pow (10.0f, etmp)); } } diff --git a/liboctave/lo-mappers.cc b/liboctave/lo-mappers.cc --- a/liboctave/lo-mappers.cc +++ b/liboctave/lo-mappers.cc @@ -402,7 +402,7 @@ float arg (float x) { - return atan2 (0.0, x); + return atan2 (0.0f, x); } float