commit | 903e025f6cd8d978f013c741431b87b04ae01fd1 | [log] [tgz] |
---|---|---|
author | Alexis Hetu <sugoi@google.com> | Tue Nov 25 14:25:32 2014 -0500 |
committer | Alexis Hétu <sugoi@google.com> | Wed Nov 26 13:00:00 2014 +0000 |
tree | cae9e1786ec1f3e4c9f19ba5ba01bd44c937b134 | |
parent | 5b5d562c239b516373c730f079ab52e230a158ac [diff] [blame] |
Fixed signed/unsigned types comparison BUG=18368388 Change-Id: I3f2927fd68e75a8fb5abde1b25e81416862076fc Reviewed-on: https://swiftshader-review.googlesource.com/1474 Tested-by: Alexis Hétu <sugoi@google.com> Reviewed-by: Nicolas Capens <nicolascapens@google.com>
diff --git a/src/Shader/PixelShader.cpp b/src/Shader/PixelShader.cpp index ddddb94..9e4cff5 100644 --- a/src/Shader/PixelShader.cpp +++ b/src/Shader/PixelShader.cpp
@@ -26,7 +26,7 @@ if(ps) // Make a copy { - for(int i = 0; i < ps->getLength(); i++) + for(size_t i = 0; i < ps->getLength(); i++) { append(new sw::Shader::Instruction(*ps->getInstruction(i))); }