Skip to content

Commit 07c82db

Browse files
committed
fix missing type cast
1 parent 5769d03 commit 07c82db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/vulkan/vk_runtime_device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ bool probe_vkr_devices(VkrBackend* runtime) {
315315
.allocate_buffer = (Buffer*(*)(Device*, size_t)) vkr_allocate_buffer_device,
316316
.import_host_memory_as_buffer = (Buffer*(*)(Device*, void*, size_t)) vkr_import_buffer_host,
317317
.launch_kernel = (Command*(*)(Device*, Program*, String, int, int, int, int, void**)) vkr_launch_kernel,
318-
.can_import_host_memory = vkr_can_import_host_memory,
318+
.can_import_host_memory = (bool(*)(Device*)) vkr_can_import_host_memory,
319319
};
320320
append_list(Device*, runtime->base.runtime->devices, device);
321321
}

0 commit comments

Comments
 (0)