From 5f844605ee52cd8aecfc7ca4b2e6601447ee952a Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Tue, 21 Jan 2025 18:45:08 +0100 Subject: [PATCH] echo.c: Avoid -Wsign-compare with MinGW on 32bit systems MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit echo.c:221:72: error: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘time_t’ {aka ‘long int’} [-Werror=sign-compare] Signed-off-by: Frank Lichtenheld --- echo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/echo.c b/echo.c index 093931b24..355005df3 100644 --- a/echo.c +++ b/echo.c @@ -218,7 +218,8 @@ echo_msg_repeated(const struct echo_msg *msg) const struct echo_msg_history *hist; hist = echo_msg_recall(msg->fp.digest, msg->history); - return (hist && (hist->fp.timestamp + o.popup_mute_interval * 3600 > msg->fp.timestamp)); + return (hist + && (hist->fp.timestamp + (time_t)(o.popup_mute_interval * 3600) > msg->fp.timestamp)); } /* Append a line of echo msg */