Making DALi public API typesafe using guaranteed types; uint8_t, uint32_t
[platform/core/uifw/dali-core.git] / dali / public-api / rendering / property-buffer.cpp
index b62e5e6..75e2b0c 100644 (file)
@@ -58,7 +58,7 @@ PropertyBuffer& PropertyBuffer::operator=( const PropertyBuffer& handle )
 
 void PropertyBuffer::SetData( const void* data, std::size_t size )
 {
-  GetImplementation(*this).SetData( data, size );
+  GetImplementation(*this).SetData( data, static_cast<uint32_t>( size ) ); // only support 4,294,967,295 bytes
 }
 
 std::size_t PropertyBuffer::GetSize() const