summaryrefslogtreecommitdiff
path: root/graphics/asymptote/GL/glew.c
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/asymptote/GL/glew.c')
-rw-r--r--graphics/asymptote/GL/glew.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/graphics/asymptote/GL/glew.c b/graphics/asymptote/GL/glew.c
index 18a2853da0..62cc2f563b 100644
--- a/graphics/asymptote/GL/glew.c
+++ b/graphics/asymptote/GL/glew.c
@@ -253,7 +253,7 @@ static GLboolean _glewStrSame1 (const GLubyte** a, GLuint* na, const GLubyte* b,
if(*na >= nb)
{
GLuint i=0;
- while (i < nb && (*a)+i != NULL && b+i != NULL && (*a)[i] == b[i]) i++;
+ while (i < nb && (*a)[i] == b[i]) i++;
if(i == nb)
{
*a = *a + nb;
@@ -269,7 +269,7 @@ static GLboolean _glewStrSame2 (const GLubyte** a, GLuint* na, const GLubyte* b,
if(*na >= nb)
{
GLuint i=0;
- while (i < nb && (*a)+i != NULL && b+i != NULL && (*a)[i] == b[i]) i++;
+ while (i < nb && (*a)[i] == b[i]) i++;
if(i == nb)
{
*a = *a + nb;
@@ -285,7 +285,7 @@ static GLboolean _glewStrSame3 (const GLubyte** a, GLuint* na, const GLubyte* b,
if(*na >= nb)
{
GLuint i=0;
- while (i < nb && (*a)+i != NULL && b+i != NULL && (*a)[i] == b[i]) i++;
+ while (i < nb && (*a)[i] == b[i]) i++;
if (i == nb && (*na == nb || (*a)[i] == ' ' || (*a)[i] == '\n' || (*a)[i] == '\r' || (*a)[i] == '\t'))
{
*a = *a + nb;