Skip to content

Commit 5f84460

Browse files
flichtenheldcron2
authored andcommitted
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 <[email protected]>
1 parent 91b0b1e commit 5f84460

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

echo.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ echo_msg_repeated(const struct echo_msg *msg)
218218
const struct echo_msg_history *hist;
219219

220220
hist = echo_msg_recall(msg->fp.digest, msg->history);
221-
return (hist && (hist->fp.timestamp + o.popup_mute_interval * 3600 > msg->fp.timestamp));
221+
return (hist
222+
&& (hist->fp.timestamp + (time_t)(o.popup_mute_interval * 3600) > msg->fp.timestamp));
222223
}
223224

224225
/* Append a line of echo msg */

0 commit comments

Comments
 (0)