X-Git-Url: https://git.libre-soc.org/?p=mesa.git;a=blobdiff_plain;f=src%2Fglx%2Fglxglvnd.c;h=962eda8bb5b2e8d16274a663c3bfc1fb45151773;hp=b7252a791ad5822ca15c6d3e240628de90eeaa9a;hb=27ef7bfd6cd2d960844f4c79d6dddc0bda0b20b0;hpb=9e1248d0752e692714b58ef1f2211ec7e172c8cf diff --git a/src/glx/glxglvnd.c b/src/glx/glxglvnd.c index b7252a791ad..962eda8bb5b 100644 --- a/src/glx/glxglvnd.c +++ b/src/glx/glxglvnd.c @@ -19,11 +19,11 @@ static void *__glXGLVNDGetProcAddress(const GLubyte *procName) static unsigned FindGLXFunction(const GLubyte *name) { - unsigned first = 0; - unsigned last = DI_FUNCTION_COUNT - 1; + int first = 0; + int last = DI_FUNCTION_COUNT - 1; while (first <= last) { - unsigned middle = (first + last) / 2; + int middle = (first + last) / 2; int comp = strcmp((const char *) name, __glXDispatchTableStrings[middle]);