Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'js/prepare-sequencer'
author
Junio C Hamano
<gitster@pobox.com>
Fri, 11 Nov 2016 21:56:30 +0000
(13:56 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 11 Nov 2016 21:56:30 +0000
(13:56 -0800)
Silence a clang warning introduced by a recently graduated topic.
* js/prepare-sequencer:
sequencer: silence -Wtautological-constant-out-of-range-compare
sequencer.c
patch
|
blob
|
history
raw
(from parent 1:
b18f6a0
)
diff --git
a/sequencer.c
b/sequencer.c
index 5fd75f30dd4455bf71a12fd628b488fc2b17e192..6f0ff9e413129567332b78bd93ff2528076c8db6 100644
(file)
--- 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);
}