From c796066b996f0c60ff17884a10e821bd3aef08ec Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Wed, 21 Dec 2016 14:20:26 +0100 Subject: [PATCH] Add missing repr(C) on TT_OS2 --- Cargo.toml | 3 ++- src/tt_os2.rs | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index cac0790..a60110a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,9 +2,10 @@ description = "Bindings for Freetype used by Servo" license = "Apache-2.0 / MIT" name = "freetype" -version = "0.1.2" +version = "0.1.3" authors = ["The Servo Project Developers"] documentation = "http://doc.servo.org/freetype/" +repository = "https://github.com/servo/rust-freetype" [features] default = ["servo-freetype-sys"] diff --git a/src/tt_os2.rs b/src/tt_os2.rs index e333fa6..b2e9a65 100644 --- a/src/tt_os2.rs +++ b/src/tt_os2.rs @@ -9,6 +9,7 @@ use freetype::{FT_UShort, FT_Short, FT_ULong, FT_Byte}; +#[repr(C)] pub struct TT_OS2 { pub version: FT_UShort, pub xAvgCharWidth: FT_Short,