fix short count optimization
This commit is contained in:
parent
3faaa52aa7
commit
5f15fca662
|
@ -1762,8 +1762,8 @@ struct VarData
|
||||||
{
|
{
|
||||||
unsigned int old = remap.to_old (i);
|
unsigned int old = remap.to_old (i);
|
||||||
if (unlikely (old >= src->itemCount)) return_trace (false);
|
if (unlikely (old >= src->itemCount)) return_trace (false);
|
||||||
int16_t hi = get_item_delta (old, short_count - 1) & 0xFF00;
|
int16_t delta = get_item_delta (old, short_count - 1);
|
||||||
if (hi != 0 && hi != 0xFF00) goto found_short;
|
if (-128 <= delta && delta <= 127) goto found_short;
|
||||||
}
|
}
|
||||||
|
|
||||||
found_short:
|
found_short:
|
||||||
|
|
Loading…
Reference in New Issue