diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2008-11-28 15:31:45 -0300 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2008-11-28 15:31:45 -0300 |
commit | 163277cb82fa38a5e7a5b1728f5d9535efb2c921 (patch) | |
tree | cd86bfef3630561647f5fceb29da8a8632abd739 | |
parent | a421e30f41308a9e76421460ff44768f45842bf7 (diff) |
- Minor compiler warning fix.
-rw-r--r-- | src/jpeg.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -278,14 +278,14 @@ static void Jpeg_write(DilloJpeg *jpeg, void *Buf, uint_t BufSize) /* decompression step 3 (see libjpeg.doc) */ if (jpeg_read_header(&(jpeg->cinfo), TRUE) != JPEG_SUSPENDED) { type = DILLO_IMG_TYPE_GRAY; - if (jpeg->cinfo.num_components == 1) + if (jpeg->cinfo.num_components == 1) { type = DILLO_IMG_TYPE_GRAY; - else if (jpeg->cinfo.num_components == 3) + } else if (jpeg->cinfo.num_components == 3) { type = DILLO_IMG_TYPE_RGB; - else + } else { _MSG("jpeg: can't handle %d component images\n", jpeg->cinfo.num_components); - + } /* * If a multiple-scan image is not completely in cache, * use progressive display, updating as it arrives. |