From 1accb67720596bd946809d4032661f5d3adb7a26 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 27 Aug 2009 12:34:38 +0200 Subject: [PATCH] ocaml/guestfs_c.c avoid signed/unsigned-comparison warning * ocaml/guestfs_c.c (ocaml_guestfs_strings_val): Declare index as unsigned int. --- ocaml/guestfs_c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocaml/guestfs_c.c b/ocaml/guestfs_c.c index f983696..9a7454d 100644 --- a/ocaml/guestfs_c.c +++ b/ocaml/guestfs_c.c @@ -131,7 +131,7 @@ ocaml_guestfs_strings_val (guestfs_h *g, value sv) { CAMLparam1 (sv); char **r; - int i; + unsigned int i; r = guestfs_safe_malloc (g, sizeof (char *) * (Wosize_val (sv) + 1)); for (i = 0; i < Wosize_val (sv); ++i) -- 1.8.3.1