From d5eae0ce6534bbadf98ba8a3e4e767740e7ad150 Mon Sep 17 00:00:00 2001 From: Ricky Curtice Date: Thu, 7 Aug 2014 06:52:15 -0700 Subject: Corrected issue with compiling on 64bit. Hackish fix. size_t changes with architecture, on my 64bit compile it was a ulong, but the underlying libs just use int and uint. Chose int because it can automatically be cast to uint losslessly, but the reverse isn't true. A full correct fix would be to dig through the code replacing all non-pointer uses of size_t with the correct integer type. That's just outside of my current time limits to fix this. --- dmagick/internal/Windows.d | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dmagick/internal/Windows.d b/dmagick/internal/Windows.d index 13bf3c5..53d46cd 100644 --- a/dmagick/internal/Windows.d +++ b/dmagick/internal/Windows.d @@ -17,8 +17,8 @@ class Window Image image; Image[] imageList; size_t index; - size_t height; - size_t width; + int height; + int width; WNDCLASS wndclass; HINSTANCE hInstance; @@ -35,8 +35,8 @@ class Window { this.image = image; - height = image.rows; - width = image.columns; + height = cast(int)image.rows; + width = cast(int)image.columns; hInstance = cast(HINSTANCE) GetModuleHandleA(null); -- cgit v1.2.3