Index: src/core/SkColorTable.cpp |
diff --git a/src/core/SkColorTable.cpp b/src/core/SkColorTable.cpp |
index e461a095f0d096416846c01247c0bdd99fdab135..ca9a8657c4132cc565e998522978128d89ce6f7c 100644 |
--- a/src/core/SkColorTable.cpp |
+++ b/src/core/SkColorTable.cpp |
@@ -36,7 +36,7 @@ SkColorTable::SkColorTable(SkPMColor* colors, int count, AllocatedWithMalloc) |
: fColors(colors) |
, fCount(count) |
{ |
- SkASSERT(count > 0 && count <= 255); |
+ SkASSERT(count > 0 && count <= 256); |
SkASSERT(colors); |
} |
@@ -108,7 +108,7 @@ SkColorTable* SkColorTable::Create(SkReadBuffer& buffer) { |
return new SkColorTable(nullptr, 0); |
} |
- if (count < 0 || count > 255) { |
+ if (count < 0 || count > 256) { |
buffer.validate(false); |
return nullptr; |
} |