diff --git a/dynamic.c b/dynamic.c index 236b61f3ae..a3feec1f78 100644 --- a/dynamic.c +++ b/dynamic.c @@ -259,7 +259,7 @@ function_t dylib_proc(dylib_t lib, const char *proc) } } - // Dirty hack to workaround the non-legality of void *-> fn-pointer casts. + // Dirty hack to workaround the non-legality of (void*) -> fn-pointer casts. function_t sym; memcpy(&sym, &ptr_sym, sizeof(void*)); #endif diff --git a/gfx/sdlwrap.h b/gfx/sdlwrap.h index 45bc81fc5a..170a6170e4 100644 --- a/gfx/sdlwrap.h +++ b/gfx/sdlwrap.h @@ -33,7 +33,7 @@ #define SDL_MODERN 0 #endif -// Not legal to cast void *to fn-pointer. Need workaround to be compliant. +// Not legal to cast (void*) to fn-pointer. Need workaround to be compliant. #define SDL_SYM_WRAP(sym, symbol) { \ assert(sizeof(void*) == sizeof(void (*)(void))); \ void *sym__ = SDL_GL_GetProcAddress(symbol); \