Skip to content

Commit f813736

Browse files
committed
Merge pull request #4 from MarcelRaad/patch-1
Remove redundant variable declarations
2 parents a3e353f + 7621f1e commit f813736

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/boost/math/distributions/detail/inv_discrete_quantile.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ inline typename Dist::value_type round_to_floor(const Dist& d, typename Dist::va
305305
cc = result - 1;
306306
if(cc < support(d).first)
307307
break;
308-
typename Dist::value_type pp = c ? cdf(complement(d, cc)) : cdf(d, cc);
308+
pp = c ? cdf(complement(d, cc)) : cdf(d, cc);
309309
if(pp == p)
310310
result = cc;
311311
else if(c ? pp > p : pp < p)
@@ -339,7 +339,7 @@ inline typename Dist::value_type round_to_ceil(const Dist& d, typename Dist::val
339339
cc = result + 1;
340340
if(cc > support(d).second)
341341
break;
342-
typename Dist::value_type pp = c ? cdf(complement(d, cc)) : cdf(d, cc);
342+
pp = c ? cdf(complement(d, cc)) : cdf(d, cc);
343343
if(pp == p)
344344
result = cc;
345345
else if(c ? pp < p : pp > p)

0 commit comments

Comments
 (0)