From 0f3b63c1e170bf304cead04f400520cb62aee2c4 Mon Sep 17 00:00:00 2001
From: Simon Hofmann <mail@simon-hofmann.org>
Date: Thu, 28 Apr 2022 20:30:02 +0200
Subject: [PATCH] (#71) Cast to int64_t as used by MMPoint internally instead
 of size_t

---
 src/types.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/types.h b/src/types.h
index 7dc4cde..107eb95 100644
--- a/src/types.h
+++ b/src/types.h
@@ -59,11 +59,11 @@ H_INLINE MMRect MMRectMake(int64_t x, int64_t y, int64_t width, int64_t height)
 #if defined(IS_MACOSX)
 
 #define CGPointFromMMPoint(p) CGPointMake((CGFloat)(p).x, (CGFloat)(p).y)
-#define MMPointFromCGPoint(p) MMPointMake((size_t)(p).x, (size_t)(p).y)
+#define MMPointFromCGPoint(p) MMPointMake((int64_t)(p).x, (int64_t)(p).y)
 
 #elif defined(IS_WINDOWS)
 
-#define MMPointFromPOINT(p) MMPointMake((size_t)p.x, (size_t)p.y)
+#define MMPointFromPOINT(p) MMPointMake((int64_t)p.x, (int64_t)p.y)
 
 #endif