<<< Date Index >>>     <<< Thread Index >>>

[PATCH 8 of 9] Fix comparison signedness warning



# HG changeset patch
# User Matthias Andree <matthias.andree@xxxxxx>
# Date 1281124790 -7200
# Branch HEAD
# Node ID 55667d213995788784043ab889d8ac1995fd2b37
# Parent  4bc65ed599ef817bb754e4edfeaadffda857e3f9
Fix comparison signedness warning.

diff --git a/gnupgparse.c b/gnupgparse.c
--- a/gnupgparse.c
+++ b/gnupgparse.c
@@ -108,7 +108,7 @@
        memcpy (uid, buf, ob-buf);
        uid[ob-buf] = '\0';
       }
-      else if (ob-buf == n && (buf[n] = 0, strlen (buf) < n))
+      else if (ob-buf == n && (buf[n] = 0, strlen (buf) < (size_t)n))
        memcpy (uid, buf, n);
     }
     FREE (&buf);