[avar2] Clamp out values

This commit is contained in:
Behdad Esfahbod committed 2022-07-22 15:29:57 -06:00
1 parent d0e2ad9297
commit d6c4f757a4
1 file changed
+1 -1
+1 -1
View File
@@ -195,7 +195,7 @@ struct avar
uint32_t varidx = varidx_map.map (i);
float delta = var_store.get_delta (varidx, coords, coords_length);
v += round (delta);
/* TODO Clamp v? */
v = hb_clamp (v, -(1<<14), +(1<<14));
out.push (v);
}