Mercurial > hg > octave-terminal
changeset 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 | dd7c37ceb800 |
children | 94d512d712e3 |
files | liboctave/lo-specfun.cc |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/lo-specfun.cc +++ b/liboctave/lo-specfun.cc @@ -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;