atrri

Refractive indices varying with wavelength
git clone git://git.meso-star.fr/atrri.git
Log | Files | Refs | README | LICENSE

commit 9427f77e253856428c49a2f25642c471eb26c94a
parent 76d84841b97d48b179739fc4b84e2c8dab007de7
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 13 Oct 2021 16:52:53 +0200

Fix compilation warnings detected by gcc 11

Diffstat:
Msrc/test_atrri_load.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test_atrri_load.c b/src/test_atrri_load.c @@ -142,7 +142,7 @@ test_load(struct atrri* atrri) 789.999544621, 1.750000000, 0.430177301, 799.999535084, 1.750000000, 0.430253685 }; - const size_t nrefract_ids = sizeof(refract_ids) / sizeof(double[3]); + const size_t nrefract_ids = sizeof(refract_ids) / (sizeof(double)*3); struct atrri_desc desc = ATRRI_DESC_NULL; struct atrri_refractive_index index = ATRRI_REFRACTIVE_INDEX_NULL; size_t irefract_id = 0;