OSDN Git Service

Fixed warnings treated as errors
authorAlexis Hetu <sugoi@google.com>
Thu, 1 Feb 2018 17:17:52 +0000 (12:17 -0500)
committerAlexis Hétu <sugoi@google.com>
Thu, 1 Feb 2018 17:18:39 +0000 (17:18 +0000)
Change-Id: I19de1f5e4e8a690afed2ac7fb2050659a90fa670
Reviewed-on: https://swiftshader-review.googlesource.com/16848
Reviewed-by: Alexis Hétu <sugoi@google.com>
Tested-by: Alexis Hétu <sugoi@google.com>
src/OpenGL/compiler/OutputASM.cpp

index fc076a7..f61dce1 100644 (file)
@@ -3182,9 +3182,9 @@ namespace glsl
                int requestedLocation = fragmentOutput->getType().getLayoutQualifier().location;
                if((requestedLocation >= 0) && (requestedLocation < sw::RENDERTARGETS))
                {
-                       if(fragmentOutputs.size() <= requestedLocation)
+                       if(fragmentOutputs.size() <= (size_t)requestedLocation)
                        {
-                               while(fragmentOutputs.size() < requestedLocation)
+                               while(fragmentOutputs.size() < (size_t)requestedLocation)
                                {
                                        fragmentOutputs.push_back(nullptr);
                                }