diff options
author | David Robillard <d@drobilla.net> | 2022-06-15 13:01:21 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-07-17 17:08:36 -0400 |
commit | f723513288fe2cd3a5b59a94b470bc43e456e7a3 (patch) | |
tree | e3637f463714364932fc684dbb76a18550da28d6 /lv2/event/event-helpers.h | |
parent | 7ee4fa3fe15a2057541bf35534a2f94f77c19d5d (diff) | |
download | lv2-f723513288fe2cd3a5b59a94b470bc43e456e7a3.tar.xz |
Make potentially lossy type conversions explicit
Diffstat (limited to 'lv2/event/event-helpers.h')
-rw-r--r-- | lv2/event/event-helpers.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lv2/event/event-helpers.h b/lv2/event/event-helpers.h index 1e19e58..bf1b885 100644 --- a/lv2/event/event-helpers.h +++ b/lv2/event/event-helpers.h @@ -51,7 +51,7 @@ LV2_DISABLE_DEPRECATION_WARNINGS static inline uint16_t lv2_event_pad_size(uint16_t size) { - return (uint16_t)(size + 7U) & (uint16_t)(~7U); + return (uint16_t)((size + 7U) & ~7U); } /** Initialize (empty, reset..) an existing event buffer. |