summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/monstuff.cc2
-rw-r--r--crawl-ref/source/religion.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index 1be1610afb..b7fc6972a3 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -4907,7 +4907,7 @@ static bool _siren_movement_effect(const monsters *monster)
else
{
bool swapping = false;
- monsters *mon;
+ monsters *mon = NULL;
if (mgrd(newpos) != NON_MONSTER)
{
mon = &menv[mgrd(newpos)];
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index edc80afd2e..36633abd53 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -6979,7 +6979,7 @@ int get_tension(god_type god)
// Divides by 1 at level 1, 200 at level 27.
const int exp_lev = you.get_experience_level();
const int exp_need = exp_needed(exp_lev + 1);
- const int factor = ceil(sqrt(exp_need / 30.0));
+ const int factor = (int)ceil(sqrt(exp_need / 30.0));
const int div = 1 + factor;
tension /= div;