Michael Stefaniuc : gphoto2.ds: Remove useless casts to self.

Alexandre Julliard julliard at winehq.org
Mon Mar 11 16:29:53 CDT 2019


Module: wine
Branch: master
Commit: e8a82e230f086b5b42fa868f9dc56c8bf046fa80
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=e8a82e230f086b5b42fa868f9dc56c8bf046fa80

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Fri Mar  1 21:08:21 2019 +0100

gphoto2.ds: Remove useless casts to self.

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Marcus Meissner <marcus at jet.franken.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/gphoto2.ds/ds_image.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/gphoto2.ds/ds_image.c b/dlls/gphoto2.ds/ds_image.c
index cb3bbed..32f5267 100644
--- a/dlls/gphoto2.ds/ds_image.c
+++ b/dlls/gphoto2.ds/ds_image.c
@@ -192,7 +192,7 @@ static TW_UINT16 _get_image_and_startup_jpeg(void) {
     activeDS.jd.err = pjpeg_std_error(&activeDS.jerr);
     /* jpeg_create_decompress is a macro that expands to jpeg_CreateDecompress - see jpeglib.h
      * jpeg_create_decompress(&jd); */
-    pjpeg_CreateDecompress(&activeDS.jd, JPEG_LIB_VERSION, (size_t) sizeof(struct jpeg_decompress_struct));
+    pjpeg_CreateDecompress(&activeDS.jd, JPEG_LIB_VERSION, sizeof(struct jpeg_decompress_struct));
     activeDS.jd.src = &activeDS.xjsm;
     ret=pjpeg_read_header(&activeDS.jd,TRUE);
     activeDS.jd.out_color_space = JCS_RGB;
@@ -610,7 +610,7 @@ _get_gphoto2_file_as_DIB(
     jd.err = pjpeg_std_error(&jerr);
     /* jpeg_create_decompress is a macro that expands to jpeg_CreateDecompress - see jpeglib.h
      * jpeg_create_decompress(&jd); */
-    pjpeg_CreateDecompress(&jd, JPEG_LIB_VERSION, (size_t) sizeof(struct jpeg_decompress_struct));
+    pjpeg_CreateDecompress(&jd, JPEG_LIB_VERSION, sizeof(struct jpeg_decompress_struct));
     jd.src = &xjsm;
     ret=pjpeg_read_header(&jd,TRUE);
     jd.out_color_space = JCS_RGB;




More information about the wine-cvs mailing list