From 7ba05752c6d5ce42d2f0ca375cf5205d30d662ff Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 21 Aug 2025 19:38:10 -0600 Subject: [PATCH] [harfrust] Fix compile with clang --- src/hb-harfrust.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-harfrust.cc b/src/hb-harfrust.cc index 78c687429..2abb92560 100644 --- a/src/hb-harfrust.cc +++ b/src/hb-harfrust.cc @@ -177,7 +177,7 @@ retry_buffer: } // Encode buffer context as UTF-8, so that HarfRust can use it. - const int CONTEXT_BYTE_SIZE = 4 * buffer->CONTEXT_LENGTH; + constexpr int CONTEXT_BYTE_SIZE = 4 * hb_buffer_t::CONTEXT_LENGTH; uint8_t context[2][CONTEXT_BYTE_SIZE]; unsigned context_len[2] = { 0, 0 }; for (unsigned i = 0; i < 2; i++)