Quiet shift-overflow compiler warning.

This commit is contained in:
Jared Boone 2016-02-22 14:18:53 -08:00
parent 7f663f7e0c
commit 19609469a5

View File

@ -132,7 +132,10 @@ private:
}
static constexpr value_type mask() {
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshift-count-overflow"
return (~(~(0UL) << width()));
#pragma GCC diagnostic pop
}
static value_type reflect(value_type x) {