Correct 32bit pointer assumption in assert in SkMatrix.

git-svn-id: http://skia.googlecode.com/svn/trunk@11739 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
bungeman@google.com 2013-10-11 19:11:10 +00:00
parent fab44db294
commit 3dc82c4470

View File

@ -1220,7 +1220,7 @@ const SkMatrix::MapPtsProc SkMatrix::gMapPtsProcs[] = {
void SkMatrix::mapPoints(SkPoint dst[], const SkPoint src[], int count) const {
SkASSERT((dst && src && count > 0) || 0 == count);
// no partial overlap
SkASSERT(src == dst || SkAbs32((int32_t)(src - dst)) >= count);
SkASSERT(src == dst || &dst[count] <= &src[0] || &src[count] <= &dst[0]);
this->getMapPtsProc()(*this, dst, src, count);
}