From 9410ac0867d560bbe0a475c44e2522dbcb2ac4db Mon Sep 17 00:00:00 2001 From: Wolfgang Draxinger Date: Tue, 17 Sep 2013 13:15:10 +0200 Subject: a bit more comment on func pointer typecasting in minimalvbo --- samples/OpenGL/minimalvbo/minimalvbo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/OpenGL/minimalvbo/minimalvbo.c b/samples/OpenGL/minimalvbo/minimalvbo.c index 5ad253b..5be8f31 100644 --- a/samples/OpenGL/minimalvbo/minimalvbo.c +++ b/samples/OpenGL/minimalvbo/minimalvbo.c @@ -34,9 +34,9 @@ void display(); * L-values type signature so that the compiler doesn't warn and/or error * out. In C there's this nice property that a void pointer (`void*`) R-value * can be legally assigned to any pointer type L-value. So because of lazyness - * and because this is messing with type signatures I simply cast to a `void*` - * which perfectly well assigned to the function pointer signatures instead - * of writing `= (void(*)(bla bla bla))...` (or doing a lot of typedefs). + * and because this is messing with type signatures anyway we simply cast to + * a `void*` which perfectly well assignes to the function pointer signatures + * instead of writing `= (void(*)(bla bla bla))...` (or doing a lot of typedefs). */ void (*glfixVertexOffset)(GLint, GLenum, GLsizei, uintptr_t const) = (void*)glVertexPointer; void (*glfixTexCoordOffset)(GLint, GLenum, GLsizei, uintptr_t const) = (void*)glTexCoordPointer; -- cgit v1.2.3