Browse Source

Specify int type on carla-plugin lv2 options

tags/1.9.8
falkTX 6 years ago
parent
commit
badfa6d5ae
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      source/utils/CarlaLv2Utils.hpp

+ 4
- 4
source/utils/CarlaLv2Utils.hpp View File

@@ -586,7 +586,7 @@ public:
{
if (options[i].type == uridMap->map(uridMap->handle, LV2_ATOM__Int))
{
const int value(*(const int*)options[i].value);
const int32_t value(*(const int32_t*)options[i].value);
CARLA_SAFE_ASSERT_CONTINUE(value > 0);

fBufferSize = static_cast<uint32_t>(value);
@@ -603,7 +603,7 @@ public:
{
if (options[i].type == uridMap->map(uridMap->handle, LV2_ATOM__Int))
{
const int value(*(const int*)options[i].value);
const int32_t value(*(const int32_t*)options[i].value);
CARLA_SAFE_ASSERT_CONTINUE(value > 0);

fBufferSize = static_cast<uint32_t>(value);
@@ -1015,7 +1015,7 @@ public:
{
if (options[i].type == fURIs.atomInt)
{
const int value(*(const int*)options[i].value);
const int32_t value(*(const int32_t*)options[i].value);
CARLA_SAFE_ASSERT_CONTINUE(value > 0);

const uint32_t newBufferSize = static_cast<uint32_t>(value);
@@ -1035,7 +1035,7 @@ public:
{
if (options[i].type == fURIs.atomInt)
{
const int value(*(const int*)options[i].value);
const int32_t value(*(const int32_t*)options[i].value);
CARLA_SAFE_ASSERT_CONTINUE(value > 0);

const uint32_t newBufferSize = static_cast<uint32_t>(value);


Loading…
Cancel
Save