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:
parent
fab44db294
commit
3dc82c4470
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user