From: Bart House Date: Sat, 13 Jul 2019 01:37:33 +0000 (-0700) Subject: Fixed sign/unsigned comparisions. X-Git-Tag: v3.6.3.757eca7~144 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0e8e5aac93e660a001dccb66df7320023aaa36de;p=nethack Fixed sign/unsigned comparisions. --- diff --git a/src/teleport.c b/src/teleport.c index 100a74d3b..0c8271845 100644 --- a/src/teleport.c +++ b/src/teleport.c @@ -1143,10 +1143,10 @@ struct monst *mtmp; sent out of his room (caller might resort to goodpos() if we report failure here, so this isn't full prevention) */ if (mtmp->isshk && inhishop(mtmp)) { - if (levl[x][y].roomno != ESHK(mtmp)->shoproom) + if (levl[x][y].roomno != (unsigned char) ESHK(mtmp)->shoproom) return FALSE; } else if (mtmp->ispriest && inhistemple(mtmp)) { - if (levl[x][y].roomno != EPRI(mtmp)->shroom) + if (levl[x][y].roomno != (unsigned char) EPRI(mtmp)->shroom) return FALSE; } /* current location is */ diff --git a/win/tty/topl.c b/win/tty/topl.c index bb79be26c..cfd17838d 100644 --- a/win/tty/topl.c +++ b/win/tty/topl.c @@ -259,7 +259,7 @@ register const char *bp; && cw->cury == 0 && n0 + (int) strlen(toplines) + 3 < CO - 8 /* room for --More-- */ && (notdied = strncmp(bp, "You die", 7)) != 0) { - nhassert(strlen(toplines) == cw->curx); + nhassert((long) strlen(toplines) == cw->curx); Strcat(toplines, " "); Strcat(toplines, bp); cw->curx += 2;