diff options
| -rw-r--r-- | include/private/ui/RegionHelper.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/private/ui/RegionHelper.h b/include/private/ui/RegionHelper.h index c7c31607dc..a22b2cbd30 100644 --- a/include/private/ui/RegionHelper.h +++ b/include/private/ui/RegionHelper.h @@ -27,10 +27,10 @@ template<typename RECT> class region_operator { public: - typedef typename RECT::value_type TYPE; - static const TYPE max_value = 0x7FFFFFF; + typedef typename RECT::value_type TYPE; + static const TYPE max_value = std::numeric_limits<TYPE>::max(); - /* + /* * Common boolean operations: * value is computed as 0b101 op 0b110 * other boolean operation are possible, simply compute |