sequencer: silence -Wtautological-constant-out-of-range-compare
[gitweb.git] / sequencer.c
index a61fe76f98f0a5805bb75e9b5c40c39b4b750498..fae2bbd2ba3fa2cce55e3b936c720eda709f2a8b 100644 (file)
@@ -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);
 }