From f615a1decabfc23fefce7f02ab5323f33a017608 Mon Sep 17 00:00:00 2001 From: Jeremy Lakeman Date: Wed, 21 Sep 2016 09:33:08 +0930 Subject: [PATCH] Fix signed / unsigned warning --- meshmb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshmb.c b/meshmb.c index 7cc607f5..254025f4 100644 --- a/meshmb.c +++ b/meshmb.c @@ -120,7 +120,7 @@ static int app_meshmb_read(const struct cli_parsed *parsed, struct cli_context * case MESSAGE_BLOCK_TYPE_MESSAGE: cli_put_long(context, row_id++, ":"); cli_put_long(context, read.record_end_offset, ":"); - cli_put_long(context, timestamp ? (now - timestamp) : (long)-1, ":"); + cli_put_long(context, timestamp ? (long)(now - timestamp) : (long)-1, ":"); cli_put_string(context, (const char *)read.record, "\n"); break;