From 3e50a8dfec948fa378d5311f1d0edfb9db4bee2f Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 4 Feb 2025 13:05:34 +0000 Subject: [PATCH] [buffer] Use UINT_MAX instead of wrong macro --- src/hb-buffer.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hb-buffer.cc b/src/hb-buffer.cc index 3fc869887..d0c40664a 100644 --- a/src/hb-buffer.cc +++ b/src/hb-buffer.cc @@ -860,7 +860,7 @@ hb_buffer_destroy (hb_buffer_t *buffer) * @destroy: (nullable): A callback to call when @data is not needed anymore * @replace: Whether to replace an existing data with the same key * - * Attaches a user-data key/data pair to the specified buffer. + * Attaches a user-data key/data pair to the specified buffer. * * Return value: `true` if success, `false` otherwise * @@ -1209,7 +1209,7 @@ hb_buffer_get_flags (const hb_buffer_t *buffer) * @cluster_level: The cluster level to set on the buffer * * Sets the cluster level of a buffer. The #hb_buffer_cluster_level_t - * dictates one aspect of how HarfBuzz will treat non-base characters + * dictates one aspect of how HarfBuzz will treat non-base characters * during shaping. * * Since: 0.9.42 @@ -1229,7 +1229,7 @@ hb_buffer_set_cluster_level (hb_buffer_t *buffer, * @buffer: An #hb_buffer_t * * Fetches the cluster level of a buffer. The #hb_buffer_cluster_level_t - * dictates one aspect of how HarfBuzz will treat non-base characters + * dictates one aspect of how HarfBuzz will treat non-base characters * during shaping. * * Return value: The cluster level of @buffer @@ -1983,7 +1983,7 @@ hb_buffer_add_codepoints (hb_buffer_t *buffer, * @buffer: An #hb_buffer_t * @source: source #hb_buffer_t * @start: start index into source buffer to copy. Use 0 to copy from start of buffer. - * @end: end index into source buffer to copy. Use @HB_FEATURE_GLOBAL_END to copy to end of buffer. + * @end: end index into source buffer to copy. Use @UINT_MAX (or ((unsigned int) -1)) to copy to end of buffer. * * Append (part of) contents of another buffer to this buffer. *