diff options
author | Pekka Enberg <penberg@kernel.org> | 2013-06-06 19:51:47 +0300 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2013-06-06 19:51:47 +0300 |
commit | ad029a36758028edaf4e33a1f7b438046ae27e4d (patch) | |
tree | 0362e9d90a3ea4901782cf90160f9693ac655673 | |
parent | 1489b0c61f4db395509c3d8e7443a118e6024234 (diff) | |
download | jato-ad029a36758028edaf4e33a1f7b438046ae27e4d.tar.gz |
vm: Fix unsigned int comparison in stack_trace_elem_type_name()
Spotted by GCC:
vm/stack-trace.c: In function ‘stack_trace_elem_type_name’:
vm/stack-trace.c:723:2: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
Signed-off-by: Pekka Enberg <penberg@kernel.org>
-rw-r--r-- | vm/stack-trace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/stack-trace.c b/vm/stack-trace.c index cf3f2a49..896ada63 100644 --- a/vm/stack-trace.c +++ b/vm/stack-trace.c @@ -720,7 +720,7 @@ static const char *stack_trace_elem_type_names[] = { const char *stack_trace_elem_type_name(enum stack_trace_elem_type type) { - assert(type >= 0 && type < ARRAY_SIZE(stack_trace_elem_type_names)); + assert(type < ARRAY_SIZE(stack_trace_elem_type_names)); return stack_trace_elem_type_names[type]; } |