X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2Fgdcmjpegls%2FDecoder%2Fdecoder.c;h=463fa8d43df4a73f52d2dd5a7c08fc50d40625ee;hb=9886f353508c0874d5c0283c1c55561a4a001b0f;hp=b3d19029d9d642f1b5cfd0f8fb17318d4088ece1;hpb=68d67ea7128441d7243c25fd2ed2b4d2fd6e5a5b;p=gdcm.git diff --git a/src/gdcmjpegls/Decoder/decoder.c b/src/gdcmjpegls/Decoder/decoder.c index b3d19029..463fa8d4 100644 --- a/src/gdcmjpegls/Decoder/decoder.c +++ b/src/gdcmjpegls/Decoder/decoder.c @@ -118,8 +118,8 @@ int alpha, /* alphabet size */ int highmask; #endif -void usage(); +void usage(); @@ -138,7 +138,7 @@ inline void write_one_line(pixel* line, int cols, FILE* outfile) line8 = (unsigned char*)safealloc(cols); for (i=0; i< cols; i++) - *(line8+i)=ENDIAN8(*(line+i)); + *(line8+i)=(unsigned char)ENDIAN8(*(line+i)); fwrite(line8, sizeof(unsigned char), cols, outfile); @@ -316,7 +316,7 @@ int initialize(int argc, char *argv[]) int pos; /* position in the file, after the header */ for (i=0;i