[arrays] More
This commit is contained in:
parent
3e26c8d2b1
commit
96cf088980
|
@ -588,10 +588,10 @@ struct hb_face_builder_data_t
|
||||||
{
|
{
|
||||||
struct table_entry_t
|
struct table_entry_t
|
||||||
{
|
{
|
||||||
inline int cmp (const hb_tag_t *t) const
|
inline int cmp (hb_tag_t t) const
|
||||||
{
|
{
|
||||||
if (*t < tag) return -1;
|
if (t < tag) return -1;
|
||||||
if (*t > tag) return -1;
|
if (t > tag) return -1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -233,7 +233,7 @@ struct hb_vector_t
|
||||||
{
|
{
|
||||||
Type *array = arrayZ();
|
Type *array = arrayZ();
|
||||||
for (unsigned int i = 0; i < len; i++)
|
for (unsigned int i = 0; i < len; i++)
|
||||||
if (0 == array[i].cmp (&x))
|
if (0 == array[i].cmp (x))
|
||||||
return &array[i];
|
return &array[i];
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
@ -242,7 +242,7 @@ struct hb_vector_t
|
||||||
{
|
{
|
||||||
const Type *array = arrayZ();
|
const Type *array = arrayZ();
|
||||||
for (unsigned int i = 0; i < len; i++)
|
for (unsigned int i = 0; i < len; i++)
|
||||||
if (0 == array[i].cmp (&x))
|
if (0 == array[i].cmp (x))
|
||||||
return &array[i];
|
return &array[i];
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue