Unbreak builds

This commit is contained in:
Behdad Esfahbod 2018-10-22 21:49:42 -07:00
parent 8d689f8a7b
commit 8c78ced95b
2 changed files with 3 additions and 3 deletions

View File

@ -537,7 +537,7 @@ struct hb_array_t
T *arrayZ;
unsigned int len;
};
template <typename T>
template <typename T> static inline
hb_array_t<T> hb_array (T *array, unsigned int len) { return hb_array_t<T> (array, len); }
struct hb_bytes_t

View File

@ -386,10 +386,10 @@ struct UnsizedArrayOf
DEFINE_SIZE_ARRAY (0, arrayZ);
};
} /* namespace OT */
template <typename T>
template <typename T> static inline
hb_array_t<T> hb_array (OT::UnsizedArrayOf<T> &array, unsigned int len)
{ return hb_array (array.arrayZ, len); }
template <typename T>
template <typename T> static inline
hb_array_t<const T> hb_array (const OT::UnsizedArrayOf<T> &array, unsigned int len)
{ return hb_array (array.arrayZ, len); }
namespace OT {