diff src/exif.c @ 1058:b600689a677e

Fix up few signed vs unsigned warnings: exif_item_get_rational() last parameter is now of guint type.
author zas_
date Tue, 07 Oct 2008 19:29:13 +0000
parents 1646720364cf
children 1e2de04c6fc4
line wrap: on
line diff
--- a/src/exif.c	Tue Oct 07 18:37:32 2008 +0000
+++ b/src/exif.c	Tue Oct 07 19:29:13 2008 +0000
@@ -1478,10 +1478,10 @@
 }
 
 
-ExifRational *exif_item_get_rational(ExifItem *item, gint *sign, gint n)
+ExifRational *exif_item_get_rational(ExifItem *item, gint *sign, guint n)
 {
 	if (!item) return NULL;
-	if (n >= (gint)item->elements) return NULL;
+	if (n >= item->elements) return NULL;
 
 	if (item->format == EXIF_FORMAT_RATIONAL ||
 	    item->format == EXIF_FORMAT_RATIONAL_UNSIGNED)