Commit 520acc67 by Nicolas Capens

Fix Clang errors on Linux.

Change-Id: I8bc812cd6c25a60dc73abc2177e8eb4a3841af21 Reviewed-on: https://swiftshader-review.googlesource.com/4551Tested-by: 's avatarNicolas Capens <capn@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent 81f1830d
......@@ -3227,7 +3227,7 @@ namespace glsl
return matrix->getSecondarySize();
}
// Returns ~0 if no loop count could be determined
// Returns ~0u if no loop count could be determined
unsigned int OutputASM::loopCount(TIntermLoop *node)
{
// Parse loops of the form:
......@@ -3353,7 +3353,7 @@ namespace glsl
else UNIMPLEMENTED(); // Falls through
}
return ~0;
return ~0u;
}
bool DetectLoopDiscontinuity::traverse(TIntermNode *node)
......
......@@ -71,7 +71,7 @@ unsigned int VertexDataManager::writeAttributeData(StreamingVertexBuffer *vertex
if(!output)
{
ERR("Failed to map vertex buffer.");
return UINT_MAX;
return ~0u;
}
const char *input = nullptr;
......@@ -163,7 +163,7 @@ GLenum VertexDataManager::prepareVertexData(GLint start, GLsizei count, Translat
{
unsigned int streamOffset = writeAttributeData(mStreamingBuffer, start, count, attribs[i]);
if(streamOffset == UINT_MAX)
if(streamOffset == ~0u)
{
return GL_OUT_OF_MEMORY;
}
......
......@@ -72,7 +72,7 @@ unsigned int VertexDataManager::writeAttributeData(StreamingVertexBuffer *vertex
if(!output)
{
ERR("Failed to map vertex buffer.");
return UINT_MAX;
return ~0u;
}
const char *input = nullptr;
......@@ -158,7 +158,7 @@ GLenum VertexDataManager::prepareVertexData(GLint start, GLsizei count, Translat
{
unsigned int streamOffset = writeAttributeData(mStreamingBuffer, start, count, attribs[i]);
if(streamOffset == UINT_MAX)
if(streamOffset == ~0u)
{
return GL_OUT_OF_MEMORY;
}
......
......@@ -71,7 +71,7 @@ unsigned int VertexDataManager::writeAttributeData(StreamingVertexBuffer *vertex
if(!output)
{
ERR("Failed to map vertex buffer.");
return UINT_MAX;
return ~0u;
}
const char *input = nullptr;
......@@ -171,7 +171,7 @@ GLenum VertexDataManager::prepareVertexData(GLint start, GLsizei count, Translat
{
unsigned int streamOffset = writeAttributeData(mStreamingBuffer, firstVertexIndex, isInstanced ? 1 : count, attrib);
if(streamOffset == UINT_MAX)
if(streamOffset == ~0u)
{
return 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