Commit bd31792f authored by Jerome Benoit's avatar Jerome Benoit

RC #793998 - eg/t_test_by_rows - fix

parent 84ed180b
apophenia (0.999e+ds-4) UNRELEASED; urgency=medium
* bug fix release:
- eg/t_test_by_rows TYPO and hidden numerical FAILURE, isolate and fix.
- eg/t_test_by_rows:
- TYPO and hidden numerical FAILURE, isolate and fix;
- type mismatch, isolate and fix.
-- Jerome Benoit <> Fri, 16 Oct 2015 00:08:20 +0000
Description: upstream -- RC bug fix 793998 -- eg/t_test_by_rows.c
Fix a careless mistake that had introduced a type mismatch: size_t vs int.
The patch was designed with 'gcc (Debian 5.2.1-22) 5.2.1 20151010' on
a s390x Debian porter (sid).
Origin: debian
Author: Jerome Benoit <>
Last-Update: 2015-10-16
--- a/eg/t_test_by_rows.c
+++ b/eg/t_test_by_rows.c
@@ -4,7 +4,7 @@
void offset_rng(double *v){*v = gsl_rng_uniform(apop_rng_get_thread()) + row_offset;}
double find_tstat(gsl_vector *in){ return apop_mean(in)/sqrt(apop_var(in));}
-double conf(double in, void *df){ return gsl_cdf_tdist_P(in, *(int *)df);}
+double conf(double in, void *df){ return gsl_cdf_tdist_P(in, *(size_t *)df);}
//apop_vector_mean is a macro, so we can't point a pointer to it.
double mu(gsl_vector *in){ return apop_vector_mean(in);}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment