Fix some warnings in SkPath.

R=caryclark@google.com

Review URL: https://codereview.chromium.org/14969003

git-svn-id: http://skia.googlecode.com/svn/trunk@9076 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp
index 7ea1028..3dd619f 100644
--- a/src/core/SkPath.cpp
+++ b/src/core/SkPath.cpp
@@ -611,8 +611,8 @@
     const SkPoint* last = pts;
     SkRect testRects[2];
     if (isRectContour(false, &currVerb, &pts, NULL, NULL)) {
-        testRects[0].set(first, last - first);
-        testRects[1].set(last, pts - last);
+        testRects[0].set(first, SkToS32(last - first));
+        testRects[1].set(last, SkToS32(pts - last));
         if (testRects[0].contains(testRects[1])) {
             if (rects) {
                 rects[0] = testRects[0];
@@ -2084,7 +2084,7 @@
     buffer.write(&bounds, sizeof(bounds));
 
     buffer.padToAlign4();
-    return buffer.pos();
+    return SkToU32(buffer.pos());
 }
 
 uint32_t SkPath::readFromMemory(const void* storage) {
@@ -2116,7 +2116,7 @@
     GEN_ID_INC;
 
     SkDEBUGCODE(this->validate();)
-    return buffer.pos();
+    return SkToU32(buffer.pos());
 }
 
 ///////////////////////////////////////////////////////////////////////////////