From b1c272b93a1df85b14ae756b779c502e1a999f16 Mon Sep 17 00:00:00 2001 From: Icy Defiance Date: Wed, 6 Jan 2016 19:39:48 -0500 Subject: [PATCH] Replace int with ptrdiff_t to store the result of pointer subtraction --- auto/src/glew_init_gl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auto/src/glew_init_gl.c b/auto/src/glew_init_gl.c index 3a30e58..4907eda 100644 --- a/auto/src/glew_init_gl.c +++ b/auto/src/glew_init_gl.c @@ -8,7 +8,7 @@ static int _glewExtensionCompare(const void *a, const void *b) static GLboolean *_glewGetExtensionString(const char *name) { const char **n = (const char **) bsearch(name, _glewExtensionLookup, sizeof(_glewExtensionLookup)/sizeof(char *)-1, sizeof(char *), _glewExtensionCompare); - int i; + ptrdiff_t i; if (n) { @@ -22,7 +22,7 @@ static GLboolean *_glewGetExtensionString(const char *name) static GLboolean *_glewGetExtensionEnable(const char *name) { const char **n = (const char **) bsearch(name, _glewExtensionLookup, sizeof(_glewExtensionLookup)/sizeof(char *)-1, sizeof(char *), _glewExtensionCompare); - int i; + ptrdiff_t i; if (n) {