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/binomial_pdf.c | |
| parent | 07e18043145f3d91c8ea7ec3ad41b3c905585277 (diff) | |
refactormain
Diffstat (limited to 'lib/binomial_pdf.c')
| -rw-r--r-- | lib/binomial_pdf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/binomial_pdf.c b/lib/binomial_pdf.c index 8b3a442..f10663f 100644 --- a/lib/binomial_pdf.c +++ b/lib/binomial_pdf.c @@ -32,8 +32,8 @@ int ts_binomial_pdf( { TS_PROLOGUE( ts_binomial_pdf_p ); if ( !c ) return -1; - uint_t n_trials = ((ts_binomial_pdf_params_t *)c)->n_trials; - fp_t p = ((ts_binomial_pdf_params_t *)c)->p; + uint_t n_trials = ((ts_binomial_pdf_params_t const *)c)->n_trials; + fp_t p = ((ts_binomial_pdf_params_t const *)c)->p; if (p < 0.0 || p > 1.0 || isnan(p) || isinf(p)) return -1; for( uint_t i = 0; i < n; ++i ) { |