Warnings as errors fix
authorrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 13 Sep 2013 12:54:33 +0000 (12:54 +0000)
committerrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 13 Sep 2013 12:54:33 +0000 (12:54 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@11250 2bbb7eff-a529-9590-31e7-b0007b416f81

src/core/SkOrderedWriteBuffer.cpp
src/effects/SkMorphologyImageFilter.cpp

index 8904d7c..708a706 100644 (file)
@@ -296,7 +296,7 @@ void SkOrderedWriteBuffer::writeFlattenable(SkFlattenable* flattenable) {
         const char* name = SkFlattenable::FactoryToName(factory);
         this->writeString(name);
         if (NULL == name) {
-            SkASSERT(!"Missing factory name");
+            SkASSERT(0); // Missing factory name
             return;
         }
     } else if (fFactorySet) {
index ecc8074..5d5f290 100644 (file)
@@ -24,8 +24,8 @@ SkMorphologyImageFilter::SkMorphologyImageFilter(SkFlattenableReadBuffer& buffer
   : INHERITED(buffer) {
     fRadius.fWidth = buffer.readInt();
     fRadius.fHeight = buffer.readInt();
-    buffer.validate(SkScalarIsFinite(fRadius.fWidth) &&
-                    SkScalarIsFinite(fRadius.fHeight) &&
+    buffer.validate(SkScalarIsFinite(SkIntToScalar(fRadius.fWidth)) &&
+                    SkScalarIsFinite(SkIntToScalar(fRadius.fHeight)) &&
                     (fRadius.fWidth >= 0) &&
                     (fRadius.fHeight >= 0));
 }