comparison 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
comparison
equal deleted inserted replaced
1057:c28eb027dd5b 1058:b600689a677e
1476 } 1476 }
1477 return FALSE; 1477 return FALSE;
1478 } 1478 }
1479 1479
1480 1480
1481 ExifRational *exif_item_get_rational(ExifItem *item, gint *sign, gint n) 1481 ExifRational *exif_item_get_rational(ExifItem *item, gint *sign, guint n)
1482 { 1482 {
1483 if (!item) return NULL; 1483 if (!item) return NULL;
1484 if (n >= (gint)item->elements) return NULL; 1484 if (n >= item->elements) return NULL;
1485 1485
1486 if (item->format == EXIF_FORMAT_RATIONAL || 1486 if (item->format == EXIF_FORMAT_RATIONAL ||
1487 item->format == EXIF_FORMAT_RATIONAL_UNSIGNED) 1487 item->format == EXIF_FORMAT_RATIONAL_UNSIGNED)
1488 { 1488 {
1489 if (sign) *sign = (item->format == EXIF_FORMAT_RATIONAL); 1489 if (sign) *sign = (item->format == EXIF_FORMAT_RATIONAL);