aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Ben Wagner <bungeman@google.com>2018-06-15 16:19:56 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-15 20:46:15 +0000
commitdde9b52f9d7a24d22902023e0fed53c958773f37 (patch)
tree61071eaf8742dba27ec301b0f39139be832010ee /src
parent29f2eaf6e51593038effe18cdcf6577b7dd24a5b (diff)
Work around signed-unsigned comparison warning.
Change-Id: I42f21544f6b626d3b75b65bcccde0b5066dc520f Reviewed-on: https://skia-review.googlesource.com/135320 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/core/SkVertices.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkVertices.cpp b/src/core/SkVertices.cpp
index e8bf1b7d88..d4c6ed56de 100644
--- a/src/core/SkVertices.cpp
+++ b/src/core/SkVertices.cpp
@@ -45,7 +45,7 @@ struct SkVertices::Sizes {
numFanTris = vertexCount - 2;
// By forcing this to become indexed we are adding a constraint to the maximum
// number of vertices.
- if (vertexCount > (UINT16_MAX + 1)) {
+ if (vertexCount > (SkTo<int>(UINT16_MAX) + 1)) {
sk_bzero(this, sizeof(*this));
return;
}