Skip to content

Commit

Permalink
Fix updateMutableCommands template to use std::array::size() and cons…
Browse files Browse the repository at this point in the history
…t pointers
  • Loading branch information
bananAshkar committed Sep 9, 2024
1 parent 6db44b8 commit 5243f98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/CL/opencl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11876,14 +11876,14 @@ class CommandBufferKhr : public detail::Wrapper<cl_command_buffer_khr>
template <int ArrayLength>
cl_int updateMutableCommands(std::array<cl_command_buffer_update_type_khr,
ArrayLength> &config_types,
std::array<void *, ArrayLength> &configs) {
std::array<const void *, ArrayLength> &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 */
Expand Down

0 comments on commit 5243f98

Please sign in to comment.