# HG changeset patch # User John Tsiombikas # Date 1529624422 -10800 # Node ID 5fbfd7f8fc24a63d0f128b8ab903d5972f5573ed # Parent 633b522539a125a1163d18db00fa53454150495c minor diff -r 633b522539a1 -r 5fbfd7f8fc24 src/vksdr.c --- a/src/vksdr.c Fri Jun 22 02:08:06 2018 +0300 +++ b/src/vksdr.c Fri Jun 22 02:40:22 2018 +0300 @@ -11,7 +11,7 @@ VkShaderModuleCreateInfo inf; VkShaderModule sdr; FILE *fp; - char *buf = 0; + void *buf = 0; if(!(fp = fopen(fname, "rb"))) { fprintf(stderr, "vku_load_shader: failed to load %s: %s\n", fname, strerror(errno)); @@ -33,7 +33,7 @@ memset(&inf, 0, sizeof inf); inf.sType = VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO; inf.codeSize = size; - inf.pCode = (const uint32_t*)buf; + inf.pCode = buf; if(vkCreateShaderModule(vkdev, &inf, 0, &sdr) != 0) { fprintf(stderr, "vku_load_shader: failed to create shader: %s\n", fname);