aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Daniel Mierswa <impulze@impulze.org> 2012-02-27 13:56:40 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2012-03-03 14:46:28 +0000
commitb87323021f150cd46cf69b4631401502c9d1d3c7 (patch)
tree83761ab5c026ee928890e8691e66c36688e2c548
parentd458fb164b4157a565735aa771702de958b98b6b (diff)
downloadpaludis-b87323021f150cd46cf69b4631401502c9d1d3c7.tar.gz
paludis-b87323021f150cd46cf69b4631401502c9d1d3c7.tar.xz
fix warning regarding enumerals in conditional expressions
warning: enumeral and non-enumeral type in conditional expression
-rw-r--r--src/clients/cave/format_user_config.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clients/cave/format_user_config.hh b/src/clients/cave/format_user_config.hh
index ec95476..f14778a 100644
--- a/src/clients/cave/format_user_config.hh
+++ b/src/clients/cave/format_user_config.hh
@@ -68,7 +68,7 @@ namespace paludis
struct MinElement<c_, cs_...>
{
enum {
- cs_value = MinElement<cs_...>::value,
+ cs_value = static_cast<char>(MinElement<cs_...>::value),
c_value = c_,
value = (cs_value < c_value ? cs_value : c_value)
};