Revert "[null] Silence undefined-behavior complaints with too-small null bytes"
This reverts commit 911c76abcd
.
Broke tests. I'm not sure I understand why. At any rate, this was a
bad way to fix. I'll look into understanding as well as better fix.
This commit is contained in:
parent
911c76abcd
commit
3aceee2527
|
@ -48,14 +48,8 @@
|
|||
|
||||
template <typename T, typename>
|
||||
struct _hb_null_size : hb_integral_constant<unsigned, sizeof (T)> {};
|
||||
#ifdef HB_TINY
|
||||
/* Disabled unless tiny, to avoid undefined-behavior.
|
||||
* Enabling it saves a couple hundred bytes only.
|
||||
* To make https://bugzilla.mozilla.org/show_bug.cgi?id=810823 happy.
|
||||
*/
|
||||
template <typename T>
|
||||
struct _hb_null_size<T, hb_void_t<decltype (T::min_size)>> : hb_integral_constant<unsigned, T::null_size> {};
|
||||
#endif
|
||||
|
||||
template <typename T>
|
||||
using hb_null_size = _hb_null_size<T, void>;
|
||||
|
|
Loading…
Reference in New Issue