aboutsummaryrefslogtreecommitdiffstats
path: root/lv2
diff options
context:
space:
mode:
Diffstat (limited to 'lv2')
-rw-r--r--lv2/atom/forge.h2
-rw-r--r--lv2/midi/midi.h4
-rw-r--r--lv2/state/state.h6
3 files changed, 6 insertions, 6 deletions
diff --git a/lv2/atom/forge.h b/lv2/atom/forge.h
index 5cf3551..d17643f 100644
--- a/lv2/atom/forge.h
+++ b/lv2/atom/forge.h
@@ -497,7 +497,7 @@ lv2_atom_forge_vector(LV2_Atom_Forge* forge,
const void* elems)
{
const LV2_Atom_Vector a = {
- {(uint32_t)(sizeof(LV2_Atom_Vector_Body) + n_elems * child_size),
+ {(uint32_t)sizeof(LV2_Atom_Vector_Body) + n_elems * child_size,
forge->Vector},
{child_size, child_type}};
LV2_Atom_Forge_Ref out = lv2_atom_forge_write(forge, &a, sizeof(a));
diff --git a/lv2/midi/midi.h b/lv2/midi/midi.h
index 2c70f0c..f7e0500 100644
--- a/lv2/midi/midi.h
+++ b/lv2/midi/midi.h
@@ -215,7 +215,7 @@ lv2_midi_is_system_message(const uint8_t* msg)
case 0xFD:
return false;
default:
- return (msg[0] & 0xF0) == 0xF0;
+ return (msg[0] & 0xF0u) == 0xF0u;
}
}
@@ -227,7 +227,7 @@ static inline LV2_Midi_Message_Type
lv2_midi_message_type(const uint8_t* msg)
{
if (lv2_midi_is_voice_message(msg)) {
- return (LV2_Midi_Message_Type)(msg[0] & 0xF0);
+ return (LV2_Midi_Message_Type)(msg[0] & 0xF0u);
}
if (lv2_midi_is_system_message(msg)) {
diff --git a/lv2/state/state.h b/lv2/state/state.h
index e526d85..01ec598 100644
--- a/lv2/state/state.h
+++ b/lv2/state/state.h
@@ -82,7 +82,7 @@ typedef enum {
Implementations MUST NOT attempt to copy or serialise a non-POD value if
they do not understand its type (and thus know how to correctly do so).
*/
- LV2_STATE_IS_POD = 1,
+ LV2_STATE_IS_POD = 1u << 0u,
/**
Portable (architecture independent) data.
@@ -93,7 +93,7 @@ typedef enum {
values MUST NOT depend on architecture-specific properties like
endianness or alignment. Portable values MUST NOT contain filenames.
*/
- LV2_STATE_IS_PORTABLE = 1 << 1,
+ LV2_STATE_IS_PORTABLE = 1u << 1u,
/**
Native data.
@@ -104,7 +104,7 @@ typedef enum {
most efficient representation possible and not worry about serialisation
and portability.
*/
- LV2_STATE_IS_NATIVE = 1 << 2
+ LV2_STATE_IS_NATIVE = 1u << 2u
} LV2_State_Flags;
/** A status code for state functions. */