X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2Fjdatadst.cxx;fp=src%2Fjdatadst.cxx;h=6b40565637dfc21eaad753d1f3e4a8288a880fe9;hb=42ec5425b062744aedda5268e17876788d895609;hp=b07765539ed0b40c027e586f3862f6b7467fe2e2;hpb=bfc89bbbac631c3271dd5b628610b06d30845f41;p=gdcm.git diff --git a/src/jdatadst.cxx b/src/jdatadst.cxx index b0776553..6b405656 100644 --- a/src/jdatadst.cxx +++ b/src/jdatadst.cxx @@ -20,7 +20,7 @@ /* Expanded data destination object for stdio output */ extern "C" { - typedef int(*int_jpeg_compress_struct)(jpeg_compress_struct*); + typedef unsigned char(*uc_jpeg_compress_struct)(jpeg_compress_struct*); typedef void(*void_jpeg_compress_struct)(jpeg_compress_struct*); } @@ -165,7 +165,7 @@ jpeg_stdio_dest (j_compress_ptr cinfo, std::ofstream * outfile) dest = (my_dest_ptr) cinfo->dest; dest->pub.init_destination = reinterpret_cast(init_destination); - dest->pub.empty_output_buffer = reinterpret_cast(empty_output_buffer); + dest->pub.empty_output_buffer = reinterpret_cast(empty_output_buffer); dest->pub.term_destination = reinterpret_cast(term_destination); dest->outfile = outfile; }