Mercurial > geeqie.yaz
changeset 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 | c28eb027dd5b |
children | 008dfb7b1e42 |
files | src/exif.c src/exif.h src/exiv2.cc |
diffstat | 3 files changed, 4 insertions(+), 4 deletions(-) [+] |
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)
--- a/src/exif.h Tue Oct 07 18:37:32 2008 +0000 +++ b/src/exif.h Tue Oct 07 19:29:13 2008 +0000 @@ -133,7 +133,7 @@ const gchar *exif_item_get_format_name(ExifItem *item, gint brief); gchar *exif_item_get_data_as_text(ExifItem *item); gint exif_item_get_integer(ExifItem *item, gint *value); -ExifRational *exif_item_get_rational(ExifItem *item, gint *sign, gint n); +ExifRational *exif_item_get_rational(ExifItem *item, gint *sign, guint n); gchar *exif_item_get_string(ExifItem *item, gint idx);
--- a/src/exiv2.cc Tue Oct 07 18:37:32 2008 +0000 +++ b/src/exiv2.cc Tue Oct 07 19:29:13 2008 +0000 @@ -513,7 +513,7 @@ } } -ExifRational *exif_item_get_rational(ExifItem *item, gint *sign, gint n) +ExifRational *exif_item_get_rational(ExifItem *item, gint *sign, guint n) { try { if (!item) return NULL;