diff --git a/src/Magnum/Test/BufferGLTest.cpp b/src/Magnum/Test/BufferGLTest.cpp index 7b7d9a8e2..8599aafe5 100644 --- a/src/Magnum/Test/BufferGLTest.cpp +++ b/src/Magnum/Test/BufferGLTest.cpp @@ -298,7 +298,7 @@ void BufferGLTest::mapSub() { constexpr char data[] = {2, 7, 5, 13, 25}; buffer.setData(data, BufferUsage::StaticDraw); - char* contents = reinterpret_cast(buffer.mapSub(1, 4, Buffer::MapAccess::WriteOnly)); + char* contents = buffer.mapSub(1, 4, Buffer::MapAccess::WriteOnly); MAGNUM_VERIFY_NO_ERROR(); CORRADE_VERIFY(contents);