diff --git a/stepmania/src/archutils/Darwin/Vsync.cpp b/stepmania/src/archutils/Darwin/Vsync.cpp index 5485e67485..4538205bb5 100644 --- a/stepmania/src/archutils/Darwin/Vsync.cpp +++ b/stepmania/src/archutils/Darwin/Vsync.cpp @@ -15,5 +15,5 @@ bool wglSwapIntervalEXT(int swapInterval) { /* I really have no idea what the expected return value for success. If it was an int * I would return 0, since it is a bool, I'm going to guess that true is success. */ - return !CGLSetParameter(CGLGetCurrentContext(), kCGLCPSwapInterval, &(long(swapInterval))); + return !CGLSetParameter(CGLGetCurrentContext(), kCGLCPSwapInterval, (long*)(&swapInterval)); }