# HG changeset patch # User John W. Eaton # Date 1345679420 14400 # Node ID d2220c3def3fda7372166c96a32389142409b8e7 # Parent dd7c37ceb800910853e7e1ba2b2125bc7691f647 avoid C-style cast warning * lo-specfun.cc (betain): Use C++ static cast. diff -r dd7c37ceb800 -r d2220c3def3f liboctave/lo-specfun.cc --- 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 (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;