summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2016-11-11 13:56:30 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-11-11 13:56:30 -0800
commit5de732f647609de15f51e98b9c9de07115b58b5c (patch)
treef754240841d1eb80c8bf61bfde79eb73fe2c67a0
parentMerge branch 'ls/filter-process' (diff)
parentsequencer: silence -Wtautological-constant-out-of-range-compare (diff)
downloadtgif-5de732f647609de15f51e98b9c9de07115b58b5c.tar.xz
Merge branch 'js/prepare-sequencer'
Silence a clang warning introduced by a recently graduated topic. * js/prepare-sequencer: sequencer: silence -Wtautological-constant-out-of-range-compare
-rw-r--r--sequencer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sequencer.c b/sequencer.c
index 5fd75f30dd..6f0ff9e413 100644
--- a/sequencer.c
+++ b/sequencer.c
@@ -629,7 +629,7 @@ static const char *todo_command_strings[] = {
static const char *command_to_string(const enum todo_command command)
{
- if (command < ARRAY_SIZE(todo_command_strings))
+ if ((size_t)command < ARRAY_SIZE(todo_command_strings))
return todo_command_strings[command];
die("Unknown command: %d", command);
}