Revision: 1153
http://geeqie.svn.sourceforge.net/geeqie/?rev=1153&view=rev
Author: zas_
Date: 2008-10-07 19:29:13 +0000 (Tue, 07 Oct 2008)
Log Message:
-----------
Fix up few signed vs unsigned warnings: exif_item_get_rational() last parameter
is now of guint type.
Modified Paths:
--------------
trunk/src/exif.c
trunk/src/exif.h
trunk/src/exiv2.cc
Modified: trunk/src/exif.c
===================================================================
--- trunk/src/exif.c 2008-10-07 18:37:32 UTC (rev 1152)
+++ trunk/src/exif.c 2008-10-07 19:29:13 UTC (rev 1153)
@@ -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)
Modified: trunk/src/exif.h
===================================================================
--- trunk/src/exif.h 2008-10-07 18:37:32 UTC (rev 1152)
+++ trunk/src/exif.h 2008-10-07 19:29:13 UTC (rev 1153)
@@ -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);
Modified: trunk/src/exiv2.cc
===================================================================
--- trunk/src/exiv2.cc 2008-10-07 18:37:32 UTC (rev 1152)
+++ trunk/src/exiv2.cc 2008-10-07 19:29:13 UTC (rev 1153)
@@ -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;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn