commit 13cd480c6d0c2aa1f28e22c9291f6728b246e614
parent 331ccc3a56fc3ff9a832e3556320eadead2ec4ce
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date: Thu, 14 May 2020 20:59:45 +0200
Fix a warning
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/green-compute.c b/src/green-compute.c
@@ -195,7 +195,8 @@ green_compute_1
const struct sample* sample = green->samples + i;
unsigned id = sample->header.end_id;
ASSERT(DESC_IS_T(green->descriptions[id].type)
- || DESC_IS_H(green->descriptions[id].type));
+ || DESC_IS_H(green->descriptions[id].type)
+ || DESC_IS_MEDIUM(green->descriptions[id].type));
ASSERT(id <= green->counts.desc_count); /* Ambient ID is desc_count */
ASSERT(green->table[id].end_defined);
Ti = green->table[id].end_value;