From 310bdac4a08b99a25de6a16a20464873f90b52e4 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 4 Oct 2018 16:31:14 +0200 Subject: [PATCH] Fix a warning --- util/view-cairo.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/view-cairo.hh b/util/view-cairo.hh index 677f74b38..5be3523ad 100644 --- a/util/view-cairo.hh +++ b/util/view-cairo.hh @@ -46,7 +46,7 @@ struct view_cairo_t void init (hb_buffer_t *buffer, const font_options_t *font_opts) { lines = g_array_new (false, false, sizeof (helper_cairo_line_t)); - scale_bits = -font_opts->subpixel_bits; + scale_bits = - (int) font_opts->subpixel_bits; } void new_line (void) {