diff options
author | Ankur Mittal <anmittal@google.com> | 2018-05-03 14:02:56 -0700 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-05-04 11:09:07 +0000 |
commit | c57354418b70b4708cfaecbf97edad16f8da66b8 (patch) | |
tree | 5b42669881c317be73fa86f74458c933c8921fed /src/gpu/ops | |
parent | 5226b777edeef1b8168c9cf7f4fb34a0fdc606a1 (diff) |
Fix skia compilation error
UINT16_MAX is unsigned int. cast it to int before using it with other
int variables
Change-Id: I77d88a8d3011424a05ab54201c815ce38f9854ca
Reviewed-on: https://skia-review.googlesource.com/125805
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'src/gpu/ops')
-rw-r--r-- | src/gpu/ops/GrAALinearizingConvexPathRenderer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/ops/GrAALinearizingConvexPathRenderer.cpp b/src/gpu/ops/GrAALinearizingConvexPathRenderer.cpp index 2fcb9cd09c..2176e0914b 100644 --- a/src/gpu/ops/GrAALinearizingConvexPathRenderer.cpp +++ b/src/gpu/ops/GrAALinearizingConvexPathRenderer.cpp @@ -271,7 +271,7 @@ private: } int currentIndices = tess.numIndices(); - if (indexCount + currentIndices > UINT16_MAX) { + if (indexCount + currentIndices > static_cast<int>(UINT16_MAX)) { // if we added the current instance, we would overflow the indices we can store in a // uint16_t. Draw what we've got so far and reset. this->draw(target, gp.get(), pipeline, vertexCount, vertexStride, vertices, |