From df3c00e1afb413ce60b37b0ad9e35ab9637a4b62 Mon Sep 17 00:00:00 2001 From: Graham Percival Date: Thu, 15 Dec 2011 06:34:46 -0800 Subject: Avoid implicit sign change by doing it explicitly --- flower/interval-set.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'flower') diff --git a/flower/interval-set.cc b/flower/interval-set.cc index 193be7f7f1..dd69c5886a 100644 --- a/flower/interval-set.cc +++ b/flower/interval-set.cc @@ -60,13 +60,13 @@ Interval_set::remove_interval (Interval rm) if (!before.is_empty () && before.length () > 0.0) { - allowed_regions_.insert (allowed_regions_.begin () + i, before); + allowed_regions_.insert (allowed_regions_.begin () + (long)i, before); i++; } - allowed_regions_.erase (allowed_regions_.begin () + i); + allowed_regions_.erase (allowed_regions_.begin () + (long)i); if (!after.is_empty () && after.length () > 0.0) { - allowed_regions_.insert (allowed_regions_.begin () + i, after); + allowed_regions_.insert (allowed_regions_.begin () + (long)i, after); i++; } } -- cgit v1.2.3