]> granicus.if.org Git - nethack/commitdiff
Don't store int into unsigned
authorPasi Kallinen <paxed@alt.org>
Fri, 30 Mar 2018 17:34:19 +0000 (20:34 +0300)
committerPasi Kallinen <paxed@alt.org>
Fri, 30 Mar 2018 17:34:19 +0000 (20:34 +0300)
src/mon.c

index 6c87c81ffc232135e05add1d0ba67ce8c58432e5..456e601e7b40d320ed5d065fb8bc58302e7c8824 100644 (file)
--- a/src/mon.c
+++ b/src/mon.c
@@ -3040,7 +3040,8 @@ struct monst *mon;
 int shiftflags;
 {
     struct permonst *ptr = 0;
-    unsigned mndx, was_female = mon->female;
+    int mndx;
+    unsigned was_female = mon->female;
     boolean msg = FALSE, dochng = FALSE;
 
     if ((shiftflags & SHIFT_MSG)