htpp

htrdr-image post-processing
git clone git://git.meso-star.fr/htpp.git
Log | Files | Refs | README | LICENSE

commit 4f39e59e63bf8c67173a0173c580b25588056406
parent b1855f4223179283ac0aadab56df33dbfbf93bcb
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Tue, 23 Feb 2021 14:05:51 +0100

Fix an assertion

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

diff --git a/src/htpp.c b/src/htpp.c @@ -851,7 +851,7 @@ print_color_map(const struct scmap* scmap, const double range[2]) const int map_quarter = map_length / 4; const int label_length = map_length / 4; int i; - ASSERT(range && range[0] < range[1]); + ASSERT(range && range[0] <= range[1]); FOR_EACH(i, 0, map_length) { const double u = (double)i / (double)(map_length-1);