| @@ -231,7 +231,7 @@ lv2_atom_forge_is_blank(const LV2_Atom_Forge* forge, | |||||
| #endif | #endif | ||||
| return (type == forge->Blank || | return (type == forge->Blank || | ||||
| (type == forge->Object && | (type == forge->Object && | ||||
| ((LV2_Atom_Object_Body*)body)->id == 0)); | |||||
| ((const LV2_Atom_Object_Body*)body)->id == 0)); | |||||
| #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) | #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) | ||||
| # pragma GCC diagnostic pop | # pragma GCC diagnostic pop | ||||
| #endif | #endif | ||||
| @@ -583,7 +583,7 @@ lv2_atom_forge_object(LV2_Atom_Forge* forge, | |||||
| LV2_URID otype) | LV2_URID otype) | ||||
| { | { | ||||
| const LV2_Atom_Object a = { | const LV2_Atom_Object a = { | ||||
| { sizeof(LV2_Atom_Object) - sizeof(LV2_Atom), forge->Object }, | |||||
| { (uint32_t)(sizeof(LV2_Atom_Object) - sizeof(LV2_Atom)), forge->Object }, | |||||
| { id, otype } | { id, otype } | ||||
| }; | }; | ||||
| return lv2_atom_forge_push( | return lv2_atom_forge_push( | ||||
| @@ -608,7 +608,7 @@ lv2_atom_forge_resource(LV2_Atom_Forge* forge, | |||||
| # pragma GCC diagnostic ignored "-Wdeprecated-declarations" | # pragma GCC diagnostic ignored "-Wdeprecated-declarations" | ||||
| #endif | #endif | ||||
| const LV2_Atom_Object a = { | const LV2_Atom_Object a = { | ||||
| { sizeof(LV2_Atom_Object) - sizeof(LV2_Atom), forge->Resource }, | |||||
| { (uint32_t)(sizeof(LV2_Atom_Object) - sizeof(LV2_Atom)), forge->Resource }, | |||||
| { id, otype } | { id, otype } | ||||
| }; | }; | ||||
| return lv2_atom_forge_push( | return lv2_atom_forge_push( | ||||
| @@ -636,7 +636,7 @@ lv2_atom_forge_blank(LV2_Atom_Forge* forge, | |||||
| # pragma GCC diagnostic ignored "-Wdeprecated-declarations" | # pragma GCC diagnostic ignored "-Wdeprecated-declarations" | ||||
| #endif | #endif | ||||
| const LV2_Atom_Object a = { | const LV2_Atom_Object a = { | ||||
| { sizeof(LV2_Atom_Object) - sizeof(LV2_Atom), forge->Blank }, | |||||
| { (uint32_t)(sizeof(LV2_Atom_Object) - sizeof(LV2_Atom)), forge->Blank }, | |||||
| { id, otype } | { id, otype } | ||||
| }; | }; | ||||
| return lv2_atom_forge_push( | return lv2_atom_forge_push( | ||||
| @@ -656,7 +656,7 @@ lv2_atom_forge_key(LV2_Atom_Forge* forge, | |||||
| LV2_URID key) | LV2_URID key) | ||||
| { | { | ||||
| const LV2_Atom_Property_Body a = { key, 0, { 0, 0 } }; | const LV2_Atom_Property_Body a = { key, 0, { 0, 0 } }; | ||||
| return lv2_atom_forge_write(forge, &a, 2 * sizeof(uint32_t)); | |||||
| return lv2_atom_forge_write(forge, &a, 2 * (uint32_t)sizeof(uint32_t)); | |||||
| } | } | ||||
| /** | /** | ||||
| @@ -671,7 +671,7 @@ lv2_atom_forge_property_head(LV2_Atom_Forge* forge, | |||||
| LV2_URID context) | LV2_URID context) | ||||
| { | { | ||||
| const LV2_Atom_Property_Body a = { key, context, { 0, 0 } }; | const LV2_Atom_Property_Body a = { key, context, { 0, 0 } }; | ||||
| return lv2_atom_forge_write(forge, &a, 2 * sizeof(uint32_t)); | |||||
| return lv2_atom_forge_write(forge, &a, 2 * (uint32_t)sizeof(uint32_t)); | |||||
| } | } | ||||
| /** | /** | ||||
| @@ -683,7 +683,7 @@ lv2_atom_forge_sequence_head(LV2_Atom_Forge* forge, | |||||
| uint32_t unit) | uint32_t unit) | ||||
| { | { | ||||
| const LV2_Atom_Sequence a = { | const LV2_Atom_Sequence a = { | ||||
| { sizeof(LV2_Atom_Sequence) - sizeof(LV2_Atom), forge->Sequence }, | |||||
| { (uint32_t)(sizeof(LV2_Atom_Sequence) - sizeof(LV2_Atom)), forge->Sequence }, | |||||
| { unit, 0 } | { unit, 0 } | ||||
| }; | }; | ||||
| return lv2_atom_forge_push( | return lv2_atom_forge_push( | ||||