From 6c000934ce96a8f1b7fadaa1ff80b21f4b9be2f5 Mon Sep 17 00:00:00 2001 From: Ryan Hunt Date: Wed, 21 Jun 2017 14:08:49 -0500 Subject: [PATCH] Mark TypedRect as repr(C) --- src/rect.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rect.rs b/src/rect.rs index a99f97d..ce472fe 100644 --- a/src/rect.rs +++ b/src/rect.rs @@ -24,6 +24,7 @@ use std::hash::{Hash, Hasher}; use std::ops::{Add, Sub, Mul, Div}; /// A 2d Rectangle optionally tagged with a unit. +#[repr(C)] pub struct TypedRect { pub origin: TypedPoint2D, pub size: TypedSize2D,