mojoshader_vulkan.c
changeset 1280 d2a0d76469f9
parent 1277 da61410edbc9
child 1302 974d2cc3558e
--- a/mojoshader_vulkan.c	Tue Jul 07 19:25:47 2020 -0400
+++ b/mojoshader_vulkan.c	Tue Jul 07 21:00:14 2020 -0400
@@ -638,7 +638,8 @@
     if ((vshader == NULL) && (pshader == NULL))
         return NULL;
 
-    result = ctx->malloc_fn(sizeof (MOJOSHADER_vkProgram), ctx->malloc_data);
+    result = (MOJOSHADER_vkProgram *) ctx->malloc_fn(sizeof (MOJOSHADER_vkProgram),
+                                                     ctx->malloc_data);
     if (result == NULL)
     {
         out_of_memory();