Mercurial > octave
diff liboctave/lo-specfun.cc @ 15217:d2220c3def3f
avoid C-style cast warning
* lo-specfun.cc (betain): Use C++ static cast.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 22 Aug 2012 19:50:20 -0400 |
parents | ea5e02b14853 |
children |
line wrap: on
line diff
--- a/liboctave/lo-specfun.cc Wed Aug 22 18:19:27 2012 -0400 +++ b/liboctave/lo-specfun.cc Wed Aug 22 19:50:20 2012 -0400 @@ -3195,7 +3195,7 @@ term = 1.0; ai = 1.0; value = 1.0; - ns = (int) (qq + cx * psq); + ns = static_cast<int> (qq + cx * psq); // Use the Soper reduction formula. @@ -3263,7 +3263,8 @@ // Volume 26, Number 1, 1977, pages 111-114. // double -betaincinv (double y, double p, double q) { +betaincinv (double y, double p, double q) +{ double a, acu, adj, fpu, g, h; int iex; bool indx;