aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--paludis/environments/paludis/output_conf.cc4
-rw-r--r--paludis/repositories/e/e_repository_sets.cc2
2 files changed, 3 insertions, 3 deletions
diff --git a/paludis/environments/paludis/output_conf.cc b/paludis/environments/paludis/output_conf.cc
index ccd5f51b8..888cb0370 100644
--- a/paludis/environments/paludis/output_conf.cc
+++ b/paludis/environments/paludis/output_conf.cc
@@ -173,7 +173,7 @@ namespace
if (rule.action_requirement() != "*" && rule.action_requirement() != "sync")
return false;
- if (-1 != rule.output_exclusivity_requirement() &&
+ if (static_cast<OutputExclusivity>(-1) != rule.output_exclusivity_requirement() &&
rule.output_exclusivity_requirement() != i.output_exclusivity())
return false;
@@ -197,7 +197,7 @@ namespace
if (rule.action_requirement() != "*" && rule.action_requirement() != i.action_name())
return false;
- if (-1 != rule.output_exclusivity_requirement() &&
+ if (static_cast<OutputExclusivity>(-1) != rule.output_exclusivity_requirement() &&
rule.output_exclusivity_requirement() != i.output_exclusivity())
return false;
diff --git a/paludis/repositories/e/e_repository_sets.cc b/paludis/repositories/e/e_repository_sets.cc
index 496258bdb..2f60c1def 100644
--- a/paludis/repositories/e/e_repository_sets.cc
+++ b/paludis/repositories/e/e_repository_sets.cc
@@ -210,7 +210,7 @@ namespace
if (r.op() == "ge")
our_op = vo_greater_equal;
- if (-1 != our_op)
+ if (static_cast<VersionOperatorValue>(-1) != our_op)
return (VersionOperator(our_op).as_version_spec_comparator()(id->version(), VersionSpec(ver, ver_options)));
if (0 == r.op().compare(0, 1, "r"))