From: PatR Date: Fri, 20 Nov 2015 00:18:12 +0000 (-0800) Subject: built warning for STATUS_VIA_WINDOWPORT X-Git-Tag: NetHack-3.6.0_RC01~47^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b5a08bc729ab72077a82b7bc9f2f9835bd1c50ad;p=nethack built warning for STATUS_VIA_WINDOWPORT This should fix one of the 64-bit warnings. Make the conversion from ptrdiff_t to int be explicit with a cast. --- diff --git a/src/botl.c b/src/botl.c index 134305f89..422f6d4ef 100644 --- a/src/botl.c +++ b/src/botl.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 botl.c $NHDT-Date: 1446975461 2015/11/08 09:37:41 $ $NHDT-Branch: master $:$NHDT-Revision: 1.67 $ */ +/* NetHack 3.6 botl.c $NHDT-Date: 1447978683 2015/11/20 00:18:03 $ $NHDT-Branch: master $:$NHDT-Revision: 1.69 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /* NetHack may be freely redistributed. See license for details. */ @@ -48,7 +48,7 @@ bot1() Sprintf(nb = eos(nb), " "); i = mrank_sz + 15; - j = (nb + 2) - newbot1; /* aka strlen(newbot1) but less computation */ + j = (int) ((nb + 2) - newbot1); /* strlen(newbot1) but less computation */ if ((i - j) > 0) Sprintf(nb = eos(nb), "%*s", i - j, " "); /* pad with spaces */ if (ACURR(A_STR) > 18) { @@ -1036,9 +1036,9 @@ struct istat_s *bl, *maxbl; #ifdef STATUS_HILITES -/*****************************************************************************/ +/****************************************************************************/ /* Core status hiliting support */ -/*****************************************************************************/ +/****************************************************************************/ struct hilite_s { boolean set;