From cb47f61116c020edf4bcba44dffaea75d5f9364e Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 2 Oct 2021 18:38:29 -0700 Subject: [PATCH] fonts: fix build on win32 --- wezterm-font/src/ftwrap.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wezterm-font/src/ftwrap.rs b/wezterm-font/src/ftwrap.rs index 870a4db64..98de9e3a7 100644 --- a/wezterm-font/src/ftwrap.rs +++ b/wezterm-font/src/ftwrap.rs @@ -564,7 +564,7 @@ impl Face { /// `I` is chosen rather than `O` as `O` glyphs are often optically /// compensated and overshoot a little. fn compute_cap_height(&mut self) -> anyhow::Result { - let glyph_pos = unsafe { FT_Get_Char_Index(self.face, b'I' as u64) }; + let glyph_pos = unsafe { FT_Get_Char_Index(self.face, b'I' as _) }; if glyph_pos == 0 { anyhow::bail!("no I from which to compute cap height"); }