From 57cc73d413c205a0c16c824b8cb8f81a74e4ca46 Mon Sep 17 00:00:00 2001 From: Gary Bisson Date: Wed, 13 Oct 2021 16:32:32 +0200 Subject: [PATCH] j1939cat: fix comparison signs issue Signed-off-by: Gary Bisson --- j1939cat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/j1939cat.c b/j1939cat.c index 8277356..f629d77 100644 --- a/j1939cat.c +++ b/j1939cat.c @@ -273,7 +273,7 @@ static int j1939cat_extract_serr(struct j1939cat_priv *priv) case J1939_EE_INFO_RX_DPO: stats->tskey = serr->ee_data; j1939cat_print_timestamp(priv, "RX DPO", &tss->ts[0]); - if (stats->send <= priv->last_dpo && priv->last_dpo != -1) + if (stats->send <= (uint32_t)priv->last_dpo && priv->last_dpo != -1) warnx("same dpo? current: %i, last: %i", stats->send, priv->last_dpo); priv->last_dpo = stats->send;