commit c73c8ec70341215abce5d23c54860175dd7ce59b
parent f7e0b6c90feb19d20c543be4dc45ef5d4bf5f0ff
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Mon, 30 Jul 2018 10:44:11 +0200
Fix the htgop_sample_sw_spectral_interval_CIE functions
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/htgop.c b/src/htgop.c
@@ -249,10 +249,10 @@ sample_sw_spectral_interval_CIE
return RES_BAD_ARG;
}
- find = search_lower_bound(&r, &cdf, cdf_length, sizeof(double), cmp_dbl);
+ find = search_lower_bound(&r, cdf, cdf_length, sizeof(double), cmp_dbl);
if(!find) {
log_err(htgop,
- "%s: could not sample a spectral interval in the CIE XYZ interval.\n",
+ "%s: could not sample a spectral interval in the CIE XYZ spectral band.\n",
caller);
return RES_BAD_OP;
}
@@ -858,8 +858,8 @@ htgop_sample_sw_spectral_interval_CIE_Z
{
if(!htgop) return RES_BAD_ARG;
return sample_sw_spectral_interval_CIE(htgop, FUNC_NAME,
- darray_double_cdata_get(&htgop->sw_Y_cdf),
- darray_double_size_get(&htgop->sw_Y_cdf),
+ darray_double_cdata_get(&htgop->sw_Z_cdf),
+ darray_double_size_get(&htgop->sw_Z_cdf),
r, ispecint);
}