diff options
| author | Ethan Werner <mail@ethanwerner.com> | 2026-08-09 15:02:21 +0400 |
|---|---|---|
| committer | Ethan Werner <mail@ethanwerner.com> | 2026-08-09 15:02:21 +0400 |
| commit | 3d92926a902017e7cf1f5738e99ff62da596ce12 (patch) | |
| tree | 2b55422c26a48759d56fa91f06df24449e9dfa88 /lib/beta_pdf.c | |
| parent | 07e18043145f3d91c8ea7ec3ad41b3c905585277 (diff) | |
Diffstat (limited to 'lib/beta_pdf.c')
| -rw-r--r-- | lib/beta_pdf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/beta_pdf.c b/lib/beta_pdf.c index a23ed68..1366665 100644 --- a/lib/beta_pdf.c +++ b/lib/beta_pdf.c @@ -32,8 +32,8 @@ int ts_beta_pdf( { TS_PROLOGUE( ts_beta_pdf_p ); if ( !c ) return -1; - fp_t alpha = ((ts_beta_pdf_params_t *)c)->alpha; - fp_t beta = ((ts_beta_pdf_params_t *)c)->beta; + fp_t alpha = ((ts_beta_pdf_params_t const *)c)->alpha; + fp_t beta = ((ts_beta_pdf_params_t const *)c)->beta; if (isnan(alpha) || isnan(beta) || alpha <= 0 || beta <= 0) { for( uint_t i = 0; i < n; ++i ) y[0][i] = 0; |