mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-19 14:01:10 +01:00
[configs] Fix builds with HB_NO_BUFFER_SERIALIZE but not HB_NO_BUFFER_VERIFY
https://github.com/harfbuzz/harfbuzz/commit/e986c12075a69300a5e114fe139ae5acd762ef1b#commitcomment-75339317
This commit is contained in:
1 parent
67852504f6
commit
cb961eac5c
1 file changed
+2
@@ -418,6 +418,7 @@ hb_buffer_t::verify (hb_buffer_t *text_buffer,
|
||||
ret = false;
|
||||
if (!ret)
|
||||
{
|
||||
#ifndef HB_NO_BUFFER_SERIALIZE
|
||||
unsigned len = text_buffer->len;
|
||||
hb_vector_t<char> bytes;
|
||||
if (likely (bytes.resize (len * 10 + 16)))
|
||||
@@ -430,6 +431,7 @@ hb_buffer_t::verify (hb_buffer_t *text_buffer,
|
||||
HB_BUFFER_SERIALIZE_FLAG_NO_CLUSTERS);
|
||||
buffer_verify_error (this, font, BUFFER_VERIFY_ERROR "text was: %s.", bytes.arrayZ);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user