aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/lv2/atom/util.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/lv2/atom/util.h b/include/lv2/atom/util.h
index 9a3d8a3..32e8b6a 100644
--- a/include/lv2/atom/util.h
+++ b/include/lv2/atom/util.h
@@ -38,9 +38,7 @@ extern "C" {
static inline uint32_t
lv2_atom_pad_size(uint32_t size)
{
- static const uint32_t mask = 7U;
-
- return (size + mask) & ~mask;
+ return (size + 7U) & ~(7U);
}
/** Return the total size of `atom`, including the header. */