mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-07 06:25:03 +00:00
[subset] Fix undefined-behavior
This commit is contained in:
parent
97db7bb2a0
commit
24fe2be9c1
1 changed files with 2 additions and 2 deletions
|
@ -3900,8 +3900,8 @@ struct ConditionAxisRange
|
|||
{
|
||||
// add axisIndex->value into the hashmap so we can check if the record is
|
||||
// unique with variations
|
||||
int16_t int_filter_max_val = filterRangeMaxValue.to_int ();
|
||||
int16_t int_filter_min_val = filterRangeMinValue.to_int ();
|
||||
uint16_t int_filter_max_val = (uint16_t) filterRangeMaxValue.to_int ();
|
||||
uint16_t int_filter_min_val = (uint16_t) filterRangeMinValue.to_int ();
|
||||
hb_codepoint_t val = (int_filter_max_val << 16) + int_filter_min_val;
|
||||
|
||||
condition_map->set (axisIndex, val);
|
||||
|
|
Loading…
Add table
Reference in a new issue