diff --git a/src/trap.c b/src/trap.c index 236092d2d..b8cdc739a 100644 --- a/src/trap.c +++ b/src/trap.c @@ -5407,7 +5407,7 @@ count_traps(int ttyp) struct trap *trap = g.ftrap; while (trap) { - if (trap->ttyp == ttyp) + if ((int) trap->ttyp == ttyp) ret++; trap = trap->ntrap; }