mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 22:41:10 +01:00
[SimpleGlyph] Use hb_memset instead of memset
This commit is contained in:
1 parent
1b0c5a3e63
commit
e5dfb6a4b6
1 file changed
+1
-1
@@ -194,7 +194,7 @@ struct SimpleGlyph
|
||||
points.alloc (points.length + num_points + 4, true); // Allocate for phantom points, to avoid a possible copy
|
||||
if (!points.resize (points.length + num_points, false)) return false;
|
||||
auto points_ = points.as_array ().sub_array (old_length);
|
||||
memset (points_.arrayZ, 0, sizeof (contour_point_t) * num_points);
|
||||
hb_memset (points_.arrayZ, 0, sizeof (contour_point_t) * num_points);
|
||||
if (phantom_only) return true;
|
||||
|
||||
for (int i = 0; i < num_contours; i++)
|
||||
|
||||
Reference in new issue
Block a user