Commit 755d7440 by Cody Schuffelen Committed by Chris Forbes

Fix compilation error on android build.

The error that appears when trying to build swiftshader master as part of android is: external/swiftshader/src/Shader/Shader.cpp:1886:51: error: expected '(' for function-style cast or type construction Change-Id: I667f249e46ed99c3c598490182e495c0862c64a9 Reviewed-on: https://swiftshader-review.googlesource.com/c/23768Tested-by: 's avatarChris Forbes <chrisforbes@google.com> Reviewed-by: 's avatarLingfeng Yang <lfy@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent ef4ab0f0
...@@ -1883,7 +1883,7 @@ namespace sw ...@@ -1883,7 +1883,7 @@ namespace sw
{ {
if(inst->opcode == OPCODE_CALL || inst->opcode == OPCODE_CALLNZ) if(inst->opcode == OPCODE_CALL || inst->opcode == OPCODE_CALLNZ)
{ {
int label = sw::min(inst->dst.label, unsigned int(MAX_SHADER_CALL_SITES)); int label = sw::min(inst->dst.label, static_cast<unsigned int>(MAX_SHADER_CALL_SITES));
inst->dst.callSite = callSiteIndex[label]++; inst->dst.callSite = callSiteIndex[label]++;
} }
......
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