From: nethack.allison Date: Sun, 1 Jun 2003 14:19:16 +0000 (+0000) Subject: quiet warning X-Git-Tag: MOVE2GIT~1945 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1add9289c061e1353351068c996f4c3f6b160c74;p=nethack quiet warning A recent patch triggered a warning about signed/unsigned mismatch in an assignment. --- diff --git a/src/mkmap.c b/src/mkmap.c index a885ee3f0..931775cde 100644 --- a/src/mkmap.c +++ b/src/mkmap.c @@ -17,7 +17,7 @@ STATIC_DCL void FDECL(pass_three,(SCHAR_P,SCHAR_P)); STATIC_DCL void NDECL(wallify_map); STATIC_DCL void FDECL(join_map,(SCHAR_P,SCHAR_P)); STATIC_DCL void FDECL(finish_map,(SCHAR_P,SCHAR_P,XCHAR_P,XCHAR_P)); -STATIC_DCL void FDECL(remove_room,(int)); +STATIC_DCL void FDECL(remove_room,(unsigned)); void FDECL(mkmap, (lev_init *)); char *new_locations; @@ -402,7 +402,7 @@ remove_rooms(lx, ly, hx, hy) if (croom->ly >= ly && croom->hy >= hy) croom->ly = hy; } else { /* total overlap, remove the room */ - remove_room(i); + remove_room((unsigned)i); } } } @@ -415,11 +415,12 @@ remove_rooms(lx, ly, hx, hy) */ STATIC_OVL void remove_room(roomno) - int roomno; + unsigned roomno; { struct mkroom *croom = &rooms[roomno]; struct mkroom *maxroom = &rooms[--nroom]; - int i, j, oroomno; + int i, j; + unsigned oroomno; if (croom != maxroom) { /* since the order in the array only matters for making corridors,