Fix compiler 'left shift of negative value' warning.
Use an alternate method of computing the mask of valid bits
---
mythtv/libs/libmythtv/recordingrule.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/mythtv/libs/libmythtv/recordingrule.cpp b/mythtv/libs/libmythtv/recordingrule.cpp
index a206500..a6cbec1 100644
a
|
b
|
bool RecordingRule::IsValid(QString &msg) |
985 | 985 | return false; |
986 | 986 | } |
987 | 987 | |
988 | | if (m_filter & (~0 << kNumFilters)) |
| 988 | unsigned valid_mask = (1 << kNumFilters) - 1; |
| 989 | if ((m_filter & valid_mask) != m_filter) |
989 | 990 | { |
990 | 991 | msg = QString("Invalid filter value."); |
991 | 992 | return false; |