changeset 541:7ca6abbbbb40

Use size_t instead of int here to avoid signedness issues.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 22 Nov 2012 22:24:57 +0200
parents 54fefbd9aa31
children 1f39c01e2895
files lib64gfx.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib64gfx.c	Thu Nov 22 22:24:33 2012 +0200
+++ b/lib64gfx.c	Thu Nov 22 22:24:57 2012 +0200
@@ -219,7 +219,7 @@
 #define AMICA_DM_PROBE_SIZE 2048
 static int fmtProbeAmicaPaintPacked(const Uint8 *buf, const size_t len, const DMC64ImageFormat *fmt)
 {
-    int i, n;
+    size_t i, n;
     if (len < AMICA_DM_PROBE_SIZE || !dmCompareAddr16(buf, 0, fmt->addr))
         return DM_PROBE_SCORE_FALSE;