VarStore: simplify again
This commit is contained in:
parent
914542bd18
commit
c67c1b745b
|
@ -2280,7 +2280,7 @@ struct VarData
|
||||||
unsigned int count = regionIndices.len;
|
unsigned int count = regionIndices.len;
|
||||||
bool is_long = longWords ();
|
bool is_long = longWords ();
|
||||||
unsigned word_count = wordCount ();
|
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;
|
unsigned int lcount = is_long ? word_count : 0;
|
||||||
|
|
||||||
const HBUINT8 *bytes = get_delta_bytes ();
|
const HBUINT8 *bytes = get_delta_bytes ();
|
||||||
|
@ -2296,7 +2296,7 @@ struct VarData
|
||||||
delta += scalar * *lcursor++;
|
delta += scalar * *lcursor++;
|
||||||
}
|
}
|
||||||
const HBINT16 *scursor = reinterpret_cast<const HBINT16 *> (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);
|
float scalar = regions.evaluate (regionIndices.arrayZ[i], coords, coord_count, cache);
|
||||||
delta += scalar * *scursor++;
|
delta += scalar * *scursor++;
|
||||||
|
|
Loading…
Reference in New Issue