commit 99c82c6e11f15c4d904c74dc40c1e905bcb3ca1d
parent d1a7b6bf08aa5e8ba9c3c83b8c296018199f3be6
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 19 Mar 2025 16:39:50 +0100
planets: fix an assertion
The condition tested was simply wrong, as it compared wavelengths to
radiances.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/planets/htrdr_planets_source.c b/src/planets/htrdr_planets_source.c
@@ -433,7 +433,7 @@ htrdr_planets_source_get_spectrum
if(low == upp) {
/* The range is fully included in a band */
- ASSERT(low->radiance > range[0] && upp->radiance >= range[1]);
+ ASSERT(low->wavelength > range[0] && upp->wavelength >= range[1]);
source_spectrum->size = 2;
source_spectrum->buffer = NULL;