From 893eab556b044577739eda4a7f89d33b1141ad44 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Mon, 8 Nov 2021 18:46:54 -0800 Subject: [PATCH] estimate_character_width_canonical: squash a -Wsign-conversion warning --- lib/common/textspan_lut.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/textspan_lut.c b/lib/common/textspan_lut.c index 77977576f..1825e6a5a 100644 --- a/lib/common/textspan_lut.c +++ b/lib/common/textspan_lut.c @@ -813,7 +813,7 @@ estimate_character_width_canonical(const short variant_metrics[128], width = 0; } assert(width >= 0); - return width; + return (unsigned short)width; } double estimate_text_width_1pt(const char *font_name, const char *text, -- 2.40.0