From 13b3cb0275127e7d1ef90ff3c4312db2c5df3541 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Sun, 25 Mar 2007 15:01:18 +0000 Subject: Fixed compile breaking on Windows. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1098 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/misc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc index f04d1cbab7..67d20c4a0e 100644 --- a/crawl-ref/source/misc.cc +++ b/crawl-ref/source/misc.cc @@ -1948,7 +1948,7 @@ int place_branch(unsigned short place) { const unsigned branch = (unsigned) ((place >> 8) & 0xFF); const int lev = place & 0xFF; - return lev == 0xFF? -1 : branch; + return lev == 0xFF? -1 : (int) branch; } int place_depth(unsigned short place) -- cgit v1.2.3-54-g00ecf