aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/SkPath_Reference.bmh
diff options
context:
space:
mode:
authorGravatar Cary Clark <caryclark@google.com>2018-06-20 12:45:16 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-20 17:07:48 +0000
commit75fd449d81ab0b083ca97c5ae4dffb5cb9427fdb (patch)
tree974abd52cb35f283518924886cb73f51b6df9116 /docs/SkPath_Reference.bmh
parent69162d0750b576e8f13e9303035d7e5e5e6e4d90 (diff)
fix for new fiddle compiler
New compiler is stricter, requiring some variable initialization, braces. A bug in SkRect was fixed, changing debug output. TBR=jcgregario@google.com Docs-Preview: https://skia.org/?cl=136179 Bug: skia:6898 Change-Id: I19ef1dab2d3154778d0613e7337fdcfb340dacc7 Reviewed-on: https://skia-review.googlesource.com/136179 Commit-Queue: Cary Clark <caryclark@google.com> Commit-Queue: Joe Gregorio <jcgregorio@google.com> Auto-Submit: Cary Clark <caryclark@google.com> Reviewed-by: Joe Gregorio <jcgregorio@google.com> Reviewed-by: Cary Clark <caryclark@google.com>
Diffstat (limited to 'docs/SkPath_Reference.bmh')
-rw-r--r--docs/SkPath_Reference.bmh2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/SkPath_Reference.bmh b/docs/SkPath_Reference.bmh
index deb1a046f5..75840b3144 100644
--- a/docs/SkPath_Reference.bmh
+++ b/docs/SkPath_Reference.bmh
@@ -1576,7 +1576,7 @@ treated as a point.
void draw(SkCanvas* canvas) {
SkPoint points[] = {{1, 0}, {0, 0}, {0, 0}, {0, 0}};
SkScalar step = 1;
- SkScalar prior, length, degenerate;
+ SkScalar prior, length = 0, degenerate = 0;
do {
prior = points[0].fX;
step /= 2;