Change-Id: I87c8fd0040b212ab306469cf48040773f11e29ff
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
// EXTERNAL INCLUDES
#include <dali/devel-api/threading/mutex.h>
#include <dali/integration-api/debug.h>
+#include <limits> ///< for std::numeric_limits
using namespace Dali::Scene3D::Loader;
if(result.size() <= index)
{
+ DALI_ASSERT_ALWAYS(index < std::numeric_limits<uint32_t>::max());
result.resize(index + 1u);
}
return false;
}
}
- else if(line == TOKEN_OPENING_BRACE.data())
+ else if(token == TOKEN_OPENING_BRACE.data())
{
if(DALI_UNLIKELY(braceExist))
{
void Register(ResourceType::Value type, Index id)
{
- if((!(*refCounts)[type].Empty()) && (id >= 0) && ((*refCounts)[type].Size() > id))
+ if((!(*refCounts)[type].Empty()) && ((*refCounts)[type].Size() > id))
{
++(*refCounts)[type][id];
}