From 53f8149c9005dbd31c17a5b5138089bd914913db Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 10 Aug 2010 11:52:30 +0200 Subject: [PATCH] exiftag: Compare with G_MAXUINT16 instead of -1 Fixes a compiler warning on the OS X buildbot. --- gst-libs/gst/tag/gstexiftag.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/tag/gstexiftag.c b/gst-libs/gst/tag/gstexiftag.c index 4d01435263..f6198d6eb1 100644 --- a/gst-libs/gst/tag/gstexiftag.c +++ b/gst-libs/gst/tag/gstexiftag.c @@ -540,7 +540,7 @@ gst_exif_tag_rewrite_offsets (GstByteWriter * writer, gint byte_order, { GstByteReader *reader; gint i; - guint16 aux = -1; + guint16 aux = G_MAXUINT16; GST_LOG ("Rewriting tag entries offsets"); @@ -552,7 +552,7 @@ gst_exif_tag_rewrite_offsets (GstByteWriter * writer, gint byte_order, } else { gst_byte_reader_get_uint16_be (reader, &aux); } - if (aux == -1) { + if (aux == G_MAXUINT16) { GST_WARNING ("Failed to read number of tags, won't rewrite offsets"); return; } -- 2.34.1