From 8589716a59d47134e6cfc7e44b19a1b8db9361f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Mon, 31 May 2021 22:37:55 +0200 Subject: [PATCH] A little bit more sane bitmask --- src/map/IMG/rgnfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/IMG/rgnfile.cpp b/src/map/IMG/rgnfile.cpp index 6b5d8b3e..e03e78d0 100644 --- a/src/map/IMG/rgnfile.cpp +++ b/src/map/IMG/rgnfile.cpp @@ -10,7 +10,7 @@ using namespace IMG; -#define MASK(bits) ((2U << ((bits) - 1U)) - 1U) +#define MASK(bits) ((1U << (bits)) - 1U) static quint64 pointId(const QPoint &pos, quint32 type, quint32 labelPtr) {