]> granicus.if.org Git - nethack/commitdiff
Revert type change of lit which would break code.
authorBart House <bart@barthouse.com>
Sun, 14 Jul 2019 21:02:05 +0000 (14:02 -0700)
committerBart House <bart@barthouse.com>
Sun, 14 Jul 2019 21:02:05 +0000 (14:02 -0700)
Cast lit (which will be 1) to unsigned int to remove warning.

src/sp_lev.c

index b2206ae704b296a63af5b1feaea3876c3ae1e9f2..ba9d75c72f9342d6ba0700d27e99d4a3539d8e6f 100644 (file)
@@ -3763,7 +3763,7 @@ struct opvar *mc;
 {
     int x, y;
     schar mapc;
-    uchar lit;
+    xchar lit;
     struct opvar *ret = selection_opvar((char *) 0);
 
     if (!ov || !mc || !ret)
@@ -3783,7 +3783,7 @@ struct opvar *mc;
                     break;
                 case 0:
                 case 1:
-                    if (levl[x][y].lit == lit)
+                    if (levl[x][y].lit == (unsigned int) lit)
                         selection_setpoint(x, y, ret, 1);
                     break;
                 }