summaryrefslogtreecommitdiff
path: root/codec/image_to_j2k.c
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2006-01-20 16:53:05 +0000
committerAntonin Descampe <antonin@gmail.com>2006-01-20 16:53:05 +0000
commit6a52f1a9df27215454b6ac9d9537d621882eb2c0 (patch)
tree815044f42244799d5c9bb200a4dd106f3525d279 /codec/image_to_j2k.c
parent197b0505cb07544104f336d56384655c1f589f91 (diff)
fixed various minor warnings with gdcm patches
Diffstat (limited to 'codec/image_to_j2k.c')
-rw-r--r--codec/image_to_j2k.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/codec/image_to_j2k.c b/codec/image_to_j2k.c
index 4cde28f3..5508a260 100644
--- a/codec/image_to_j2k.c
+++ b/codec/image_to_j2k.c
@@ -200,7 +200,7 @@ OPJ_PROG_ORDER give_progression(char progression[4]) {
}
int get_file_format(char *filename) {
- int i;
+ unsigned int i;
static const char *extension[] = {"pgx", "pnm", "pgm", "ppm", "bmp", "j2k", "jp2" };
static const int format[] = { PGX_DFMT, PXM_DFMT, PXM_DFMT, PXM_DFMT, BMP_DFMT, J2K_CFMT, JP2_CFMT };
char * ext = strrchr(filename, '.') + 1;