Index: src/gpu/GrDrawTarget.cpp |
=================================================================== |
--- src/gpu/GrDrawTarget.cpp (revision 11758) |
+++ src/gpu/GrDrawTarget.cpp (working copy) |
@@ -362,7 +362,7 @@ |
maxValidVertex = geoSrc.fVertexCount; |
break; |
case kBuffer_GeometrySrcType: |
- maxValidVertex = geoSrc.fVertexBuffer->sizeInBytes() / geoSrc.fVertexSize; |
+ maxValidVertex = static_cast<int>(geoSrc.fVertexBuffer->sizeInBytes() / geoSrc.fVertexSize); |
break; |
} |
if (maxVertex > maxValidVertex) { |
@@ -379,7 +379,7 @@ |
maxValidIndex = geoSrc.fIndexCount; |
break; |
case kBuffer_GeometrySrcType: |
- maxValidIndex = geoSrc.fIndexBuffer->sizeInBytes() / sizeof(uint16_t); |
+ maxValidIndex = static_cast<int>(geoSrc.fIndexBuffer->sizeInBytes() / sizeof(uint16_t)); |
break; |
} |
if (maxIndex > maxValidIndex) { |