diff --git a/src/Buffer.h b/src/Buffer.h index 479fb6204..4e6a516be 100644 --- a/src/Buffer.h +++ b/src/Buffer.h @@ -944,7 +944,7 @@ inline Buffer& Buffer::operator=(Buffer&& other) noexcept { #ifndef MAGNUM_TARGET_GLES template Containers::Array inline Buffer::data() { const Int bufferSize = size(); - CORRADE_ASSERT(bufferSize%sizeof(T) == 0, "Buffer::data(): the buffer size is" << bufferSize << "bytes, which can't be expressed as array of types with size" << sizeof(T), {}); + CORRADE_ASSERT(bufferSize%sizeof(T) == 0, "Buffer::data(): the buffer size is" << bufferSize << "bytes, which can't be expressed as array of types with size" << sizeof(T), nullptr); return subData(0, bufferSize/sizeof(T)); }