summaryrefslogtreecommitdiff
path: root/dmagick
diff options
context:
space:
mode:
authorRicky Curtice2014-08-07 06:52:15 -0700
committerRicky Curtice2014-08-07 06:52:15 -0700
commitd5eae0ce6534bbadf98ba8a3e4e767740e7ad150 (patch)
tree721d62e73744b2faa5db0b7b6d0867c486677bbf /dmagick
parent85c2caba61cfb4a867ffeeefce492bb2400a2d57 (diff)
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.
Diffstat (limited to 'dmagick')
-rw-r--r--dmagick/internal/Windows.d8
1 files 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);