mirror of
https://github.com/glfw/glfw.git
synced 2026-09-18 22:55:46 +00:00
Removed superflous casts of allocated memory.
This commit is contained in:
+3
-3
@@ -44,9 +44,9 @@
|
||||
|
||||
void _glfwAllocGammaArrays(GLFWgammaramp* ramp, unsigned int size)
|
||||
{
|
||||
ramp->red = (unsigned short*) calloc(size, sizeof(unsigned short));
|
||||
ramp->green = (unsigned short*) calloc(size, sizeof(unsigned short));
|
||||
ramp->blue = (unsigned short*) calloc(size, sizeof(unsigned short));
|
||||
ramp->red = calloc(size, sizeof(unsigned short));
|
||||
ramp->green = calloc(size, sizeof(unsigned short));
|
||||
ramp->blue = calloc(size, sizeof(unsigned short));
|
||||
ramp->size = size;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user