From b7d187f836b71bfead1f99110842def6e9fcb596 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sat, 4 Sep 2010 12:41:52 +0200 Subject: [PATCH] Fix type mismatch in ImageMagick loader * image.c (imagemagick_load_image): Fix type mismatch. (Fimagemagick_types): Likewise. --- src/ChangeLog | 2 ++ src/image.c | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index ce5e139f49c..d1d03ba6411 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,6 +1,8 @@ 2010-09-04 Andreas Schwab * image.c (imagemagick_image_p): Replace bcopy by memcpy. + (imagemagick_load_image): Fix type mismatch. + (Fimagemagick_types): Likewise. 2010-09-02 Jan Djärv diff --git a/src/image.c b/src/image.c index e6e1605b024..3eec0cbc802 100644 --- a/src/image.c +++ b/src/image.c @@ -7450,8 +7450,8 @@ imagemagick_load_image (/* Pointer to emacs frame structure. */ contents/size. */ unsigned char *filename) { - size_t width; - size_t height; + unsigned long width; + unsigned long height; MagickBooleanType status; @@ -7830,7 +7830,7 @@ DEFUN ("imagemagick-types", Fimagemagick_types, Simagemagick_types, 0, 0, 0, (void) { Lisp_Object typelist = Qnil; - size_t numf; + unsigned long numf; ExceptionInfo ex; char** imtypes = GetMagickList ("*", &numf, &ex); int i; -- 2.39.2