summaryrefslogtreecommitdiffstats
path: root/lib/std_error.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std_error.c')
-rw-r--r--lib/std_error.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std_error.c b/lib/std_error.c
index f55d34e..ebcab35 100644
--- a/lib/std_error.c
+++ b/lib/std_error.c
@@ -23,7 +23,7 @@ ts_parameter_t const ts_std_error_p = { .n_inputs = 1, .n_outputs = 1, .n_consta
uint_t ts_std_error_offset( ts_constant_t const *c )
{
( void )c;
- return ( c ? ((ts_std_error_params_t *)c)->k > 0 ? ((ts_std_error_params_t *)c)->k - 1 : 0 : 0 );
+ return ( c ? ((ts_std_error_params_t const *)c)->k > 0 ? ((ts_std_error_params_t const *)c)->k - 1 : 0 : 0 );
}
int ts_std_error(
@@ -34,7 +34,7 @@ int ts_std_error(
{
TS_PROLOGUE( ts_std_error_p );
if ( !c ) return -1;
- uint_t k = ((ts_std_error_params_t *)c)->k;
+ uint_t k = ((ts_std_error_params_t const *)c)->k;
if ( k == 0 ) return -1;
for( uint_t i = k - 1; i < n; ++i )