Skip to content

Commit

Permalink
Fix signed unsigned comparison compiler warning
Browse files Browse the repository at this point in the history
output_formatter.c:611: warning: comparison between signed and unsigned integer expressions

We fix the problem by setting "max_message_length_shown_in_error"
to be of type "unsigned int"
  • Loading branch information
pstorz committed May 31, 2017
1 parent 673b529 commit 345e8bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/output_formatter.h
Expand Up @@ -118,7 +118,7 @@ class OUTPUT_FORMATTER : public SMARTALLOC {
alist *filters;
char *hidden_columns;
POOL_MEM *result_message_plain;
static const int max_message_length_shown_in_error = 1024;
static const unsigned int max_message_length_shown_in_error = 1024;
#if HAVE_JANSSON
json_t *result_json;
alist *result_stack_json;
Expand Down

0 comments on commit 345e8bb

Please sign in to comment.