Commit 2ae614ed by Shannon Woods

Fixes sign mismatch warning in comparison.

TRAC #23714 Author: Shannon Woods Signed-off-by: Jamie Madill
parent 0b78533f
...@@ -3320,7 +3320,7 @@ void Context::drawLineLoop(GLsizei count, GLenum type, const GLvoid *indices, in ...@@ -3320,7 +3320,7 @@ void Context::drawLineLoop(GLsizei count, GLenum type, const GLvoid *indices, in
// Verified by the glDraw* functions // Verified by the glDraw* functions
ASSERT(count >= 0); ASSERT(count >= 0);
if (static_cast<unsigned short>(count) + 1 > (std::numeric_limits<unsigned short>::max() / sizeof(unsigned short))) if (static_cast<unsigned short>(count) + 1u > (std::numeric_limits<unsigned short>::max() / sizeof(unsigned short)))
{ {
return error(GL_OUT_OF_MEMORY); return error(GL_OUT_OF_MEMORY);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment