diff --git a/include/CL/opencl.hpp b/include/CL/opencl.hpp index e3202cab..bf11c680 100644 --- a/include/CL/opencl.hpp +++ b/include/CL/opencl.hpp @@ -11876,14 +11876,14 @@ class CommandBufferKhr : public detail::Wrapper template cl_int updateMutableCommands(std::array &config_types, - std::array &configs) { + std::array &configs) { if (pfn_clUpdateMutableCommandsKHR == nullptr) { return detail::errHandler(CL_INVALID_OPERATION, __UPDATE_MUTABLE_COMMANDS_KHR_ERR); } return detail::errHandler( - pfn_clUpdateMutableCommandsKHR(object_, configs.length(), - config_types.data().configs.data()), + pfn_clUpdateMutableCommandsKHR(object_, configs.size(), + config_types.data(), configs.data()), __UPDATE_MUTABLE_COMMANDS_KHR_ERR); } #endif /* CL_KHR_COMMAND_BUFFER_MUTABLE_DISPATCH_EXTENSION_VERSION */