summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Wey2011-11-03 20:05:52 +0100
committerMike Wey2011-11-03 20:05:52 +0100
commiteb530f26795da2a689f6e3ef378a49fe4652d720 (patch)
tree42887ca5b7cfeab6f8d7f88803e686c917a21a66
parent447d1555701e6c219f81d9cdd1798440546dcd0e (diff)
I should realy compile before committing.
-rw-r--r--dmagick/Image.d4
1 files changed, 2 insertions, 2 deletions
diff --git a/dmagick/Image.d b/dmagick/Image.d
index cce3d77..54de412 100644
--- a/dmagick/Image.d
+++ b/dmagick/Image.d
@@ -1343,7 +1343,7 @@ class Image
pixels.ptr,
DMagickExceptionInfo());
- return pixels;
+ return cast(typeof(return))pixels;
}
/*
@@ -1353,7 +1353,7 @@ class Image
*/
void exportPixels(T)(Geometry area, T[] pixels, string map = "RGBA") const
{
- if ( pixels.length <= area.width * area.height) * map.count )
+ if ( pixels.length <= (area.width * area.height) * map.count )
throw new ImageException(format("Pixel buffer needs more storage for %s channels.", map));
StorageType storage = getStorageType!(T);