diff options
author | Eric Boren <borenet@google.com> | 2017-06-21 13:39:32 -0400 |
---|---|---|
committer | Eric Boren <borenet@google.com> | 2017-06-28 12:38:28 +0000 |
commit | 746e2632c645fa616e6989787b27a1e6274243e3 (patch) | |
tree | 383d38ee803a8b92011a6a485334c6b72dfebeb6 /src/pathops | |
parent | 111f8a9eea6980a70a300e3a8bfd758257310fe2 (diff) |
Move all Linux GCE bots to Debian
NOTREECHECKS:true
Bug: skia:
Change-Id: I612989c6ce2f309d2f70f896500f73e4baa971a7
Reviewed-on: https://skia-review.googlesource.com/19811
Commit-Queue: Eric Boren <borenet@google.com>
Reviewed-by: Eric Boren <borenet@google.com>
Diffstat (limited to 'src/pathops')
-rw-r--r-- | src/pathops/SkOpEdgeBuilder.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pathops/SkOpEdgeBuilder.cpp b/src/pathops/SkOpEdgeBuilder.cpp index 120a503227..c1224c3603 100644 --- a/src/pathops/SkOpEdgeBuilder.cpp +++ b/src/pathops/SkOpEdgeBuilder.cpp @@ -306,7 +306,8 @@ bool SkOpEdgeBuilder::walk() { split->fT[0] = splits[prior].fT[0]; } int next = index; - while (next < breaks && !splits[next + 1].fCanAdd) { + int breakLimit = SkTMin(breaks, (int) SK_ARRAY_COUNT(splits) - 1); + while (next < breakLimit && !splits[next + 1].fCanAdd) { ++next; } if (next > index) { |