From eda8a7dec52f6a858029b50d89cf1bccc3e9f9c9 Mon Sep 17 00:00:00 2001 From: Urvang Joshi Date: Fri, 10 May 2013 13:37:20 -0700 Subject: [PATCH] gif2webp: Fix signed/unsigned comparison mismatch Change-Id: I355f0614424276550db71b24e5bb1948e5c6894c (cherry picked from commit 043e1ae4bdf6430736a7e74c589c5566cc6b07e5) --- examples/gif2webp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/gif2webp.c b/examples/gif2webp.c index 4ae7fdde..14a29718 100644 --- a/examples/gif2webp.c +++ b/examples/gif2webp.c @@ -432,7 +432,7 @@ int main(int argc, const char *argv[]) { } if (is_xmp) { // XMP padding data is 0x01, 0xff, 0xfe ... 0x01, 0x00. - const int xmp_pading_size = 257; + const size_t xmp_pading_size = 257; if (metadata.size > xmp_pading_size) { metadata.size -= xmp_pading_size; }