diff --git a/rocclr/device/device.hpp b/rocclr/device/device.hpp index 1d03f90afb..c93fe5016b 100644 --- a/rocclr/device/device.hpp +++ b/rocclr/device/device.hpp @@ -228,7 +228,7 @@ inline void WriteAqlArgAt(unsigned char* dst, //!< The write pointer to the buff uint size, //!< The size in bytes to copy size_t offset //!< The alignment to follow while writing to the buffer ) { - assert(sizeof(T) == size && "Argument's size mismatches ABI!"); + assert(sizeof(T) <= size && "Argument's size mismatches ABI!"); *(reinterpret_cast(dst + offset)) = src; }