mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-26 01:11:25 +01:00
Minor
This commit is contained in:
1 parent
209b58ef73
commit
fffea5aff7
1 file changed
+3
-3
+3
-3
@@ -231,13 +231,13 @@ struct FixedVersion
|
||||
* Use: (base+offset)
|
||||
*/
|
||||
|
||||
template <typename Type, bool has_null_> struct assert_has_min_size { static_assert (Type::min_size > 0, ""); };
|
||||
template <typename Type> struct assert_has_min_size<Type, false> {};
|
||||
template <typename Type, bool has_null_> struct assert_has_null_size { static_assert (Type::null_size > 0, ""); };
|
||||
template <typename Type> struct assert_has_null_size<Type, false> {};
|
||||
|
||||
template <typename Type, typename OffsetType=HBUINT16, bool has_null=true>
|
||||
struct OffsetTo : Offset<OffsetType, has_null>
|
||||
{
|
||||
static_assert (sizeof (assert_has_min_size<Type, has_null>) || true, "");
|
||||
static_assert (sizeof (assert_has_null_size<Type, has_null>) || true, "");
|
||||
|
||||
inline const Type& operator () (const void *base) const
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user