summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2009-12-16 00:31:42 -0600
committerJesse Luehrs <doy@tozt.net>2009-12-16 00:31:42 -0600
commit92d22c5ad9a1a70fefef9a5cb2ba801a0003f56b (patch)
tree0f07b9ffd1b2e483937f6a72b69dbbbecba34f9a /crawl-ref/source/player.cc
parent5d66ced3af630a94100a50f71224f6c7d1b2ef83 (diff)
downloadcrawl-ref-92d22c5ad9a1a70fefef9a5cb2ba801a0003f56b.tar.gz
crawl-ref-92d22c5ad9a1a70fefef9a5cb2ba801a0003f56b.zip
silence some warnings
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index b74219279a..733759432c 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -2510,7 +2510,7 @@ void gain_exp( unsigned int exp_gained, unsigned int* actual_gain,
mprf(MSGCH_DIAGNOSTICS, "gain_exp: %d", exp_gained );
#endif
- if (you.experience + exp_gained > MAX_EXP_TOTAL)
+ if (you.experience + exp_gained > (unsigned int)MAX_EXP_TOTAL)
you.experience = MAX_EXP_TOTAL;
else
you.experience += exp_gained;
@@ -2525,7 +2525,7 @@ void gain_exp( unsigned int exp_gained, unsigned int* actual_gain,
exp_gained /= 2;
}
- if (you.exp_available + exp_gained > MAX_EXP_POOL)
+ if (you.exp_available + exp_gained > (unsigned int)MAX_EXP_POOL)
you.exp_available = MAX_EXP_POOL;
else
you.exp_available += exp_gained;