diff options
| author | Mike Wey | 2011-11-03 20:05:52 +0100 |
|---|---|---|
| committer | Mike Wey | 2011-11-03 20:05:52 +0100 |
| commit | eb530f26795da2a689f6e3ef378a49fe4652d720 (patch) | |
| tree | 42887ca5b7cfeab6f8d7f88803e686c917a21a66 | |
| parent | 447d1555701e6c219f81d9cdd1798440546dcd0e (diff) | |
I should realy compile before committing.
| -rw-r--r-- | dmagick/Image.d | 4 |
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); |
