Index: src/core/SkColorTable.cpp |
diff --git a/src/core/SkColorTable.cpp b/src/core/SkColorTable.cpp |
index 242ea6ba64a5c37e1440da31c7fff6a51a3ca42c..38a46c51a43902d16efec5493c9dcb0171220c71 100644 |
--- a/src/core/SkColorTable.cpp |
+++ b/src/core/SkColorTable.cpp |
@@ -93,10 +93,10 @@ SkColorTable::SkColorTable(SkFlattenableReadBuffer& buffer) { |
fAlphaType = SkToU8(buffer.readUInt()); |
fCount = buffer.getArrayCount(); |
fColors = (SkPMColor*)sk_malloc_throw(fCount * sizeof(SkPMColor)); |
- SkDEBUGCODE(const uint32_t countRead =) buffer.readColorArray(fColors); |
+ SkDEBUGCODE(bool success =) buffer.readColorArray(fColors, fCount); |
#ifdef SK_DEBUG |
SkASSERT((unsigned)fCount <= 256); |
- SkASSERT(countRead == fCount); |
+ SkASSERT(success); |
#endif |
} |