diff options
author | 2012-02-27 13:56:40 +0100 | |
---|---|---|
committer | 2012-03-03 14:46:28 +0000 | |
commit | b87323021f150cd46cf69b4631401502c9d1d3c7 (patch) | |
tree | 83761ab5c026ee928890e8691e66c36688e2c548 | |
parent | d458fb164b4157a565735aa771702de958b98b6b (diff) | |
download | paludis-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.hh | 2 |
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 ec954761b..f14778ab6 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) }; |