Fix up unsigned expression always true warning.
authorLaurent Monin <geeqie@norz.org>
Thu, 27 Nov 2008 12:34:03 +0000 (12:34 +0000)
committerLaurent Monin <geeqie@norz.org>
Thu, 27 Nov 2008 12:34:03 +0000 (12:34 +0000)
src/format_raw.c

index 7ea68c0..6fc2652 100644 (file)
@@ -90,7 +90,7 @@ static guint tiff_table(guchar *data, const guint len, guint offset, ExifByteOrd
        guint i;
 
        if (len < offset + 2) return 0;
-       if (type < 0 || type > EXIF_FORMAT_COUNT) return 0;
+       if (type > EXIF_FORMAT_COUNT) return 0;
 
        count = exif_byte_get_int16(data + offset, bo);
        offset += 2;