Fixed negative exposure values in Canon makernotes (bug #2797280)
authorDan Fandrich <dan@coneharvesters.com>
Fri, 29 May 2009 04:43:41 +0000 (21:43 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Fri, 29 May 2009 04:43:41 +0000 (21:43 -0700)
ChangeLog
libexif/canon/mnote-canon-entry.c

index 371205e..5601d6d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-05-28  Dan Fandrich <dan@coneharvesters.com>
+
+       * Fixed negative exposure values in Canon makernotes (bug #2797280)
+
 2009-05-02  Dan Fandrich <dan@coneharvesters.com>
 
        * Added contrib/examples/write-exif.c
index 2a206de..6cd5c30 100644 (file)
@@ -642,7 +642,7 @@ mnote_canon_entry_get_value (const MnoteCanonEntry *entry, unsigned int t, char
                case 5:
                case 14:
                case 16:
-                       snprintf (val, maxlen, _("%.2f EV"), vs / 32.0);
+                       snprintf (val, maxlen, _("%.2f EV"), (ExifSShort)vs / 32.0);
                        break;
                case 3:
                case 20: