Skip to content

Commit

Permalink
Avoid conversion warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnoel committed Jan 26, 2024
1 parent 4906fa7 commit 31b4fec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/linad99/tweedie_logW.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Float tweedie_logW(double y, Float& phi, Float& p){
if (j * (cc - a1 * log(j)) < (w - TWEEDIE_DROP))
break ;
}
int jh = static_cast<int>(ceil(j));
unsigned int jh = static_cast<unsigned int>(ceil(j));
/* locate lower bound */
j = jmax;
while (1) {
Expand All @@ -60,7 +60,7 @@ Float tweedie_logW(double y, Float& phi, Float& p){
unsigned int jd = jh - jl + 1;

/* set limit for # terms in the sum */
int nterms = imin2(jd, TWEEDIE_NTERM) ;
unsigned int nterms = imin2(jd, TWEEDIE_NTERM) ;
//std::vector<Float> ww(nterms);
/* evaluate series using the finite sum*/
/* y > 0 */
Expand Down

0 comments on commit 31b4fec

Please sign in to comment.