summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/los.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-07-06 12:17:49 +0200
committerAdam Borowski <kilobyte@angband.pl>2011-07-06 12:21:55 +0200
commit9348c12b22545525c4a8150049b855096611b1ab (patch)
tree46b7a1f473570f4f45bcdce8af631189c2cd3e8a /crawl-ref/source/los.cc
parentfdf5a12385d370cb2c920bdf9455759664ab8e47 (diff)
downloadcrawl-ref-9348c12b22545525c4a8150049b855096611b1ab.tar.gz
crawl-ref-9348c12b22545525c4a8150049b855096611b1ab.zip
Fix format string warnings.
Most are annoying STL types (which can still cause crashes on exotic platforms), but there's a number of actual bugs as well.
Diffstat (limited to 'crawl-ref/source/los.cc')
-rw-r--r--crawl-ref/source/los.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/los.cc b/crawl-ref/source/los.cc
index f2c9504bdd..0aabff25a8 100644
--- a/crawl-ref/source/los.cc
+++ b/crawl-ref/source/los.cc
@@ -446,7 +446,7 @@ static void _create_blockrays()
smoke_rays = new bit_array(n_min_rays);
dprf("Cellrays: %d Fullrays: %u Minimal cellrays: %u",
- n_cellrays, fullrays.size(), n_min_rays);
+ n_cellrays, (unsigned int)fullrays.size(), n_min_rays);
}
static int _gcd(int x, int y)
@@ -578,7 +578,7 @@ static bool _find_ray_se(const coord_def& target, ray_def& ray,
unsigned int index = 0;
if (cycle)
- dprf("cycling from %d (total %d)", ray.cycle_idx, min.size());
+ dprf("cycling from %d (total %u)", ray.cycle_idx, (unsigned int)min.size());
unsigned int start = cycle ? ray.cycle_idx + 1 : 0;
ASSERT(start <= min.size());