From: robertphillips@google.com Date: Mon, 1 Apr 2013 23:24:15 +0000 (+0000) Subject: Fix clang compiler warning/error X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~12886 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c5ddb69288ed7031109d6612e1c00a3b11d1b1c;p=platform%2Fupstream%2FlibSkiaSharp.git Fix clang compiler warning/error git-svn-id: http://skia.googlecode.com/svn/trunk@8475 2bbb7eff-a529-9590-31e7-b0007b416f81 --- diff --git a/src/gpu/GrDrawState.cpp b/src/gpu/GrDrawState.cpp index 6d7969f..aa9e692 100644 --- a/src/gpu/GrDrawState.cpp +++ b/src/gpu/GrDrawState.cpp @@ -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(-1) != slTypes[attribIndex] && + slTypes[attribIndex] != effectSLType)) { return false; } slTypes[attribIndex] = effectSLType;