diff options
-rw-r--r-- | vcl/skia/salbmp.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/skia/salbmp.cxx b/vcl/skia/salbmp.cxx index fa88cac5ac87..d48e67c4e904 100644 --- a/vcl/skia/salbmp.cxx +++ b/vcl/skia/salbmp.cxx @@ -841,8 +841,8 @@ void SkiaSalBitmap::verify() const if (!mBuffer) return; // Use mPixelsSize, that describes the size of the actual data. - size_t canary = mScanlineSize * mPixelsSize.Height(); - assert(memcmp(mBuffer.get() + canary, CANARY, sizeof(CANARY)) == 0); + assert(memcmp(mBuffer.get() + mScanlineSize * mPixelsSize.Height(), CANARY, sizeof(CANARY)) + == 0); } #endif |