From 3aceee2527ad921e0d589e42a1fe451e0fc67ee0 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 6 Sep 2019 12:17:18 -0400 Subject: [PATCH] Revert "[null] Silence undefined-behavior complaints with too-small null bytes" This reverts commit 911c76abcdfe89770b252eb0d4eb621c0db00ad5. 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. --- src/hb-null.hh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/hb-null.hh b/src/hb-null.hh index 8657db349..d4578205e 100644 --- a/src/hb-null.hh +++ b/src/hb-null.hh @@ -48,14 +48,8 @@ template struct _hb_null_size : hb_integral_constant {}; -#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 struct _hb_null_size> : hb_integral_constant {}; -#endif template using hb_null_size = _hb_null_size;