mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-13 08:42:59 +00:00
Fix static_size declaration
I have a vague memory that it was intentionally written that way, but I can't recall :-(.
This commit is contained in:
parent
2023384bdf
commit
56e8a29032
2 changed files with 3 additions and 3 deletions
|
@ -285,7 +285,7 @@ struct Variable
|
|||
public:
|
||||
VarIdx varIdxBase;
|
||||
public:
|
||||
DEFINE_SIZE_STATIC (4 + T::static_size);
|
||||
DEFINE_SIZE_MIN (VarIdx::static_size + T::min_size);
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
|
@ -337,7 +337,7 @@ struct NoVariable
|
|||
|
||||
T value;
|
||||
public:
|
||||
DEFINE_SIZE_STATIC (T::static_size);
|
||||
DEFINE_SIZE_MIN (T::min_size);
|
||||
};
|
||||
|
||||
// Color structures
|
||||
|
|
|
@ -85,7 +85,7 @@ using hb_null_size = _hb_null_size<T, void>;
|
|||
template <typename T, typename>
|
||||
struct _hb_static_size : hb_integral_constant<unsigned, sizeof (T)> {};
|
||||
template <typename T>
|
||||
struct _hb_static_size<T, hb_void_t<decltype (T::min_size)>> : hb_integral_constant<unsigned, T::static_size> {};
|
||||
struct _hb_static_size<T, hb_void_t<decltype (T::static_size)>> : hb_integral_constant<unsigned, T::static_size> {};
|
||||
template <typename T>
|
||||
using hb_static_size = _hb_static_size<T, void>;
|
||||
#define hb_static_size(T) hb_static_size<T>::value
|
||||
|
|
Loading…
Add table
Reference in a new issue