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) {
: 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));
}