Chromium Code Reviews| Index: src/images/SkImageDecoder.cpp |
| diff --git a/src/images/SkImageDecoder.cpp b/src/images/SkImageDecoder.cpp |
| index c16efcf1f32797330cf39d29d10ed2da2f5ee951..10721f48dc8d6a70a9d3685423ded83cecf9f547 100644 |
| --- a/src/images/SkImageDecoder.cpp |
| +++ b/src/images/SkImageDecoder.cpp |
| @@ -60,7 +60,7 @@ SkImageDecoder::Format SkImageDecoder::getFormat() const { |
| } |
| const char* SkImageDecoder::getFormatName() const { |
| - SkASSERT(SK_ARRAY_COUNT(sFormatName) == kLastKnownFormat); |
| + SkASSERT(SK_ARRAY_COUNT(sFormatName) == kLastKnownFormat + 1); |
|
epoger
2013/04/19 21:35:16
It scares me that the previous error wasn't caught
scroggo
2013/04/19 22:12:01
Lucky for us, no one was calling it...
Using the
epoger
2013/04/23 16:03:40
Regarding unit tests: Regardless of whether code i
|
| return sFormatName[this->getFormat()]; |
| } |