summaryrefslogtreecommitdiff
path: root/dmagick/Image.d
diff options
context:
space:
mode:
authorMike Wey2011-10-02 22:15:52 +0200
committerMike Wey2011-10-02 22:15:52 +0200
commit4ab93cc75ded5c67cd404de67d21bf52d5a1cc4e (patch)
tree977476a69a5dff106803740dded88a9b89621ac9 /dmagick/Image.d
parent08886e28931be6244de210a809e1d73d4d0ab6bf (diff)
Some changes needed for 32bits.
Diffstat (limited to 'dmagick/Image.d')
-rw-r--r--dmagick/Image.d6
1 files changed, 3 insertions, 3 deletions
diff --git a/dmagick/Image.d b/dmagick/Image.d
index 0e1e101..93948cc 100644
--- a/dmagick/Image.d
+++ b/dmagick/Image.d
@@ -2845,12 +2845,12 @@ class Image
private extern(C)
{
- static void* malloc(ulong sz)
+ static void* malloc(size_t sz)
{
return GC.malloc(sz, GC.BlkAttr.NO_SCAN);
}
- static void* realloc(void* p, ulong sz)
+ static void* realloc(void* p, size_t sz)
{
return GC.realloc(p, sz, GC.BlkAttr.NO_SCAN);
}
@@ -3115,7 +3115,7 @@ class Image
*/
void animationDelay(Duration delay)
{
- imageRef.delay = (delay.total!"msecs"() * imageRef.ticks_per_second) / 1000;
+ imageRef.delay = cast(size_t)(delay.total!"msecs"() * imageRef.ticks_per_second) / 1000;
}
///ditto
Duration annimationDelay() const