mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-27 16:49:42 +01:00
[gvar] Add memory-barrier as in ArrayOf
This commit is contained in:
1 parent
b00a911fa7
commit
2e86700e30
1 file changed
+1
@@ -501,6 +501,7 @@ struct gvar
|
||||
unsigned get_offset (unsigned i) const
|
||||
{
|
||||
if (unlikely (i > glyphCount)) return 0;
|
||||
_hb_compiler_memory_r_barrier ();
|
||||
return is_long_offset () ? get_long_offset_array ()[i] : get_short_offset_array ()[i] * 2;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user