From a02f8b1e0a78e4ac75caa96bf2125fdd798908f1 Mon Sep 17 00:00:00 2001 From: Alexis Hetu Date: Thu, 1 Feb 2018 12:17:52 -0500 Subject: [PATCH] Fixed warnings treated as errors MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I19de1f5e4e8a690afed2ac7fb2050659a90fa670 Reviewed-on: https://swiftshader-review.googlesource.com/16848 Reviewed-by: Alexis Hétu Tested-by: Alexis Hétu --- src/OpenGL/compiler/OutputASM.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OpenGL/compiler/OutputASM.cpp b/src/OpenGL/compiler/OutputASM.cpp index fc076a7fb..f61dce14e 100644 --- a/src/OpenGL/compiler/OutputASM.cpp +++ b/src/OpenGL/compiler/OutputASM.cpp @@ -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); } -- 2.11.0