From: Junio C Hamano Date: Fri, 11 Nov 2016 21:56:30 +0000 (-0800) Subject: Merge branch 'js/prepare-sequencer' X-Git-Tag: v2.11.0-rc1~5 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/5de732f647609de15f51e98b9c9de07115b58b5c?hp=b18f6a00662524443cfb82f5fed7d3b54524c8ab 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 --- 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); }