mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 06:21:16 +01:00
minor
This commit is contained in:
1 parent
bb41b74fd1
commit
e6909ee58d
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -324,7 +324,7 @@ hb_buffer_t::clear_positions ()
|
||||
out_len = 0;
|
||||
out_info = info;
|
||||
|
||||
if (len)
|
||||
if (likely (len))
|
||||
memset (pos, 0, sizeof (pos[0]) * len);
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -381,7 +381,7 @@ hb_language_from_string (const char *str, int len)
|
||||
const char *
|
||||
hb_language_to_string (hb_language_t language)
|
||||
{
|
||||
if (!language) return nullptr;
|
||||
if (unlikely (!language)) return nullptr;
|
||||
|
||||
return language->s;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user