summaryrefslogtreecommitdiff
path: root/src/hb-buffer.cc
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2018-09-16 19:33:48 +0200
committerBehdad Esfahbod <behdad@behdad.org>2018-09-16 19:34:39 +0200
commit606bf57430370810f7bb62ba12b9685d8943685d (patch)
tree6165430c4b88748f004018c1fa7928ca9844182d /src/hb-buffer.cc
parentcbcaba6ffdf6b147d45baa95d62fd29cec67ed54 (diff)
Revert forcing use of single-parameter static_assert()
Some clang versions define static_assert as a macro apparently, so we cannot redefine it... This reverts commit 94bfea0ce6a7b4d5641c198d50751748a353df11. This reverts commit 4e62627831e7457ed60ff87712570065b14b200a.
Diffstat (limited to 'src/hb-buffer.cc')
-rw-r--r--src/hb-buffer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hb-buffer.cc b/src/hb-buffer.cc
index df6b5c9d..536ab5d5 100644
--- a/src/hb-buffer.cc
+++ b/src/hb-buffer.cc
@@ -130,7 +130,7 @@ hb_buffer_t::enlarge (unsigned int size)
while (size >= new_allocated)
new_allocated += (new_allocated >> 1) + 32;
- static_assert ((sizeof (info[0]) == sizeof (pos[0])));
+ static_assert ((sizeof (info[0]) == sizeof (pos[0])), "");
if (unlikely (hb_unsigned_mul_overflows (new_allocated, sizeof (info[0]))))
goto done;