]> granicus.if.org Git - nethack/commitdiff
OS2 bits
authorcohrs <cohrs>
Sun, 7 Dec 2003 20:20:59 +0000 (20:20 +0000)
committercohrs <cohrs>
Sun, 7 Dec 2003 20:20:59 +0000 (20:20 +0000)
Ronald Van Iwaarden wrote:
... lines 1845 and 1846 of cmd.c generate a 'value out of range
warning' due to the compiler making 0x80 an integer rather than a character
and '|'ing it with the argument.  This requires a minor change to micro.h.
[ Makefile.os2 rev does not currently make sense in the trunk. ]

include/micro.h

index 7d5e90fd06d300bab8aee05647d0ba3b958fb51d..38cd73723690549bcb475db2dd594c7343888616 100644 (file)
@@ -14,7 +14,7 @@ extern int ramdisk;
 #define C(c)   (0x1f & (c))
 #endif
 #ifndef M
-#define M(c)   (0x80 | (c))
+#define M(c)   (((char)0x80) | (c))
 #endif
 #define ABORT C('a')