htmie

Optical properties of water droplets
git clone git://git.meso-star.fr/htmie.git
Log | Files | Refs | README | LICENSE

commit e296872fb728486f906ab6f374eaa3815b22d2bf
parent 418c993cba51da5be86dae29cdddea1015f2e717
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Sat,  1 Dec 2018 10:26:59 +0000

Fix a unexpected Noop

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

diff --git a/src/htmie.c b/src/htmie.c @@ -387,7 +387,7 @@ interpolate_data val = u < 0.5 ? a : b; break; case HTMIE_FILTER_LINEAR: - CLAMP(u, 0, 1); /* Handle numerical inaccuracy */ + u = CLAMP(u, 0, 1); /* Handle numerical inaccuracy */ val = u*b + (1-u)*a; break; default: FATAL("Unreachable code.\n"); break;