VarStore: simplify again

This commit is contained in:
Behdad Esfahbod 2022-08-04 11:42:22 -06:00
parent 914542bd18
commit c67c1b745b
1 changed files with 2 additions and 2 deletions

View File

@ -2280,7 +2280,7 @@ struct VarData
unsigned int count = regionIndices.len;
bool is_long = longWords ();
unsigned word_count = wordCount ();
unsigned int scount = is_long ? count - word_count : word_count;
unsigned int scount = is_long ? count : word_count;
unsigned int lcount = is_long ? word_count : 0;
const HBUINT8 *bytes = get_delta_bytes ();
@ -2296,7 +2296,7 @@ struct VarData
delta += scalar * *lcursor++;
}
const HBINT16 *scursor = reinterpret_cast<const HBINT16 *> (lcursor);
for (; i < lcount + scount; i++)
for (; i < scount; i++)
{
float scalar = regions.evaluate (regionIndices.arrayZ[i], coords, coord_count, cache);
delta += scalar * *scursor++;