Fix signed / unsigned warning

This commit is contained in:
Jeremy Lakeman 2016-09-21 09:33:08 +09:30
parent a531c0e960
commit f615a1deca

View File

@ -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;