From ae145378540846ea3e51d6dee0033b16b9a43dea Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 15 Sep 2021 07:46:33 -0400 Subject: [PATCH] [style] Change tag type to hb_style_tag_t https://github.com/harfbuzz/harfbuzz/pull/3201#discussion_r708914354 --- src/hb-style.cc | 5 ++--- src/hb-style.h | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/hb-style.cc b/src/hb-style.cc index 23153dd20..58fde1b16 100644 --- a/src/hb-style.cc +++ b/src/hb-style.cc @@ -73,12 +73,11 @@ _hb_ratio_to_angle (float r) * Since: REPLACEME **/ float -hb_style_get_value (hb_font_t *font, hb_tag_t tag) +hb_style_get_value (hb_font_t *font, hb_style_tag_t style_tag) { - if (unlikely (tag == HB_STYLE_TAG_SLANT_RATIO)) + if (unlikely (style_tag == HB_STYLE_TAG_SLANT_RATIO)) return _hb_angle_to_ratio (hb_style_get_value (font, HB_STYLE_TAG_SLANT_ANGLE)); - hb_style_tag_t style_tag = (hb_style_tag_t) tag; hb_face_t *face = font->face; #ifndef HB_NO_VAR diff --git a/src/hb-style.h b/src/hb-style.h index 352f565f6..5af581f3e 100644 --- a/src/hb-style.h +++ b/src/hb-style.h @@ -72,7 +72,7 @@ typedef enum HB_EXTERN float -hb_style_get_value (hb_font_t *font, hb_tag_t style_tag); +hb_style_get_value (hb_font_t *font, hb_style_tag_t style_tag); HB_END_DECLS