X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2Fgdcmjpegls%2FDecoder%2Fdecoder.c;h=3fe7407dbe6b9a2488431034c3a7a67562b1c45f;hb=d9300e649f7b6e7c36abf062857f7f412c4c9999;hp=afdf4799d871ed12efc22c70d66be83d538f899f;hpb=0e7335260978504ed389d17c6785eef506707ed4;p=gdcm.git diff --git a/src/gdcmjpegls/Decoder/decoder.c b/src/gdcmjpegls/Decoder/decoder.c index afdf4799..3fe7407d 100644 --- a/src/gdcmjpegls/Decoder/decoder.c +++ b/src/gdcmjpegls/Decoder/decoder.c @@ -118,7 +118,6 @@ int alpha, /* alphabet size */ int highmask; #endif -void usage(); @@ -138,7 +137,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 +315,7 @@ int initialize(int argc, char *argv[]) int pos; /* position in the file, after the header */ for (i=0;i