warning in trap.c that recently appeared

src/trap.c(5410): warning C4389: '==': signed/unsigned mismatch
This commit is contained in:
nhmall
2021-06-24 08:52:43 -04:00
parent 3ddb2a91c7
commit 420863252a
+1 -1
View File
@@ -5407,7 +5407,7 @@ count_traps(int ttyp)
struct trap *trap = g.ftrap; struct trap *trap = g.ftrap;
while (trap) { while (trap) {
if (trap->ttyp == ttyp) if ((int) trap->ttyp == ttyp)
ret++; ret++;
trap = trap->ntrap; trap = trap->ntrap;
} }