Index: src/effects/SkTableColorFilter.cpp |
diff --git a/src/effects/SkTableColorFilter.cpp b/src/effects/SkTableColorFilter.cpp |
index 88b4a4bf4bbfe9ea366cb46bdbe2b8ed64142c3c..4853f73e5c1e7461500b4906a6d145f9275ece65 100644 |
--- a/src/effects/SkTableColorFilter.cpp |
+++ b/src/effects/SkTableColorFilter.cpp |
@@ -198,7 +198,7 @@ SkFlattenable* SkTable_ColorFilter::CreateProc(SkReadBuffer& buffer) { |
uint8_t unpackedStorage[4*256]; |
size_t unpackedSize = SkPackBits::Unpack8(packedStorage, packedSize, unpackedStorage); |
// now check that we got the size we expected |
- if (!buffer.validate(unpackedSize != count*256)) { |
+ if (!buffer.validate(unpackedSize == count*256)) { |
return NULL; |
} |