builtin-diff.c: die() formatting type fix.
authorJunio C Hamano <junkio@cox.net>
Sun, 30 Apr 2006 07:26:41 +0000 (00:26 -0700)
committerJunio C Hamano <junkio@cox.net>
Sun, 30 Apr 2006 07:26:41 +0000 (00:26 -0700)
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-diff.c

index c543105..b6114ce 100644 (file)
@@ -307,7 +307,7 @@ int cmd_diff(int argc, const char **argv, char **envp)
                if (!strcmp(obj->type, tree_type)) {
                        if (ARRAY_SIZE(ent) <= ents)
                                die("more than %d trees given: '%s'",
-                                   ARRAY_SIZE(ent), name);
+                                   (int) ARRAY_SIZE(ent), name);
                        obj->flags |= flags;
                        ent[ents].item = obj;
                        ent[ents].name = name;