summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2020-07-04 18:19:07 +0300
committerGitHub <noreply@github.com>2020-07-04 15:19:07 +0000
commit92ea355eeea538bd868eaebdc03469630aba281c (patch)
tree5bd1655a0980a5d6ee7ab45e71102551e2726cfc
parent466f95d3babdf55bfb9a8aa74697cac8f136590b (diff)
downloadalacritty-92ea355eeea538bd868eaebdc03469630aba281c.tar.gz
alacritty-92ea355eeea538bd868eaebdc03469630aba281c.zip
Fix compilation on 32bit targets
Fixes #3915.
-rw-r--r--font/src/ft/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/font/src/ft/mod.rs b/font/src/ft/mod.rs
index 8f061127..62a5b5ff 100644
--- a/font/src/ft/mod.rs
+++ b/font/src/ft/mod.rs
@@ -8,7 +8,7 @@ use std::rc::Rc;
use freetype::tt_os2::TrueTypeOS2Table;
use freetype::{self, Library, Matrix};
use freetype::{freetype_sys, Face as FTFace};
-use libc::c_uint;
+use libc::{c_long, c_uint};
use log::{debug, trace};
pub mod fc;
@@ -89,8 +89,8 @@ fn to_freetype_26_6(f: f32) -> isize {
}
#[inline]
-fn to_fixedpoint_16_6(f: f64) -> i64 {
- (f * 65536.0) as i64
+fn to_fixedpoint_16_6(f: f64) -> c_long {
+ (f * 65536.0) as c_long
}
impl Rasterize for FreeTypeRasterizer {