Fix clang compiler warning/error
authorrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 1 Apr 2013 23:24:15 +0000 (23:24 +0000)
committerrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 1 Apr 2013 23:24:15 +0000 (23:24 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@8475 2bbb7eff-a529-9590-31e7-b0007b416f81

src/gpu/GrDrawState.cpp

index 6d7969f..aa9e692 100644 (file)
@@ -146,7 +146,8 @@ bool GrDrawState::validateVertexAttribs() const {
                 int slVecCount = GrSLTypeVectorCount(effectSLType);
                 int attribVecCount = GrVertexAttribTypeVectorCount(attribType);
                 if (slVecCount != attribVecCount ||
-                    (-1 != slTypes[attribIndex] && slTypes[attribIndex] != effectSLType)) {
+                    (static_cast<GrSLType>(-1) != slTypes[attribIndex] && 
+                     slTypes[attribIndex] != effectSLType)) {
                     return false;
                 }
                 slTypes[attribIndex] = effectSLType;