mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-01-11 07:19:34 -05:00
Quiet shift-overflow compiler warning.
This commit is contained in:
parent
7f663f7e0c
commit
19609469a5
@ -132,7 +132,10 @@ private:
|
|||||||
}
|
}
|
||||||
|
|
||||||
static constexpr value_type mask() {
|
static constexpr value_type mask() {
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wshift-count-overflow"
|
||||||
return (~(~(0UL) << width()));
|
return (~(~(0UL) << width()));
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
}
|
}
|
||||||
|
|
||||||
static value_type reflect(value_type x) {
|
static value_type reflect(value_type x) {
|
||||||
|
Loading…
Reference in New Issue
Block a user