From e2c62ff1d2cd3f99d8f88840c2931d341178aaf7 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Fri, 12 Apr 2013 16:52:00 +0200 Subject: [PATCH] Fix warning: pointer targets differ in signedness --- libImaging/JpegEncode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libImaging/JpegEncode.c b/libImaging/JpegEncode.c index 1caa50de5..221f8ccfa 100644 --- a/libImaging/JpegEncode.c +++ b/libImaging/JpegEncode.c @@ -221,7 +221,7 @@ ImagingJpegEncode(Imaging im, ImagingCodecState state, UINT8* buf, int bytes) context->extra_offset = context->extra_size; //add exif header if (context->rawExifLen > 0) - jpeg_write_marker(&context->cinfo, JPEG_APP0+1, context->rawExif, context->rawExifLen); + jpeg_write_marker(&context->cinfo, JPEG_APP0+1, (unsigned char*)context->rawExif, context->rawExifLen); break; default: @@ -229,7 +229,7 @@ ImagingJpegEncode(Imaging im, ImagingCodecState state, UINT8* buf, int bytes) jpeg_start_compress(&context->cinfo, TRUE); //add exif header if (context->rawExifLen > 0) - jpeg_write_marker(&context->cinfo, JPEG_APP0+1, context->rawExif, context->rawExifLen); + jpeg_write_marker(&context->cinfo, JPEG_APP0+1, (unsigned char*)context->rawExif, context->rawExifLen); break; }