From 3d92926a902017e7cf1f5738e99ff62da596ce12 Mon Sep 17 00:00:00 2001 From: Ethan Werner Date: Sun, 9 Aug 2026 15:02:21 +0400 Subject: refactor --- lib/beta_pdf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/beta_pdf.c') 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; -- cgit v1.3.1