quiet a new warning that recently appeared

[warning]NetHack\src\hack.c(3223,16): Warning C4389: '!=': signed/unsigned mismatch
This commit is contained in:
nhmall
2026-04-16 19:57:02 -04:00
parent 47892c1f22
commit fd1b8e60f8

View File

@@ -3220,7 +3220,7 @@ switch_terrain(void)
void void
set_uinwater(int in_out) set_uinwater(int in_out)
{ {
if (in_out != u.uinwater) { if (in_out != (int) u.uinwater) {
u.uinwater = in_out ? 1 : 0; u.uinwater = in_out ? 1 : 0;
switch_terrain(); switch_terrain();
} }