echo.c: Avoid -Wsign-compare with MinGW on 32bit systems

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 <frank@lichtenheld.com>
master
Frank Lichtenheld 2025-01-21 18:45:08 +01:00 committed by Gert Doering
parent 91b0b1e5be
commit 5f844605ee
1 changed files with 2 additions and 1 deletions

3
echo.c
View File

@ -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 */