drawinglayer/source/processor2d/vclhelperbufferdevice.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit 9b4cb9412857525a9a0e8b032ce3934107a76565 Author: Daniel <[email protected]> AuthorDate: Thu Dec 4 12:31:00 2025 -0800 Commit: Mike Kaganski <[email protected]> CommitDate: Fri Dec 5 05:45:03 2025 +0100 tdf#114441 Replace sal_uInt64 with tools::Long aSquare and aCandidateSquare are filled with the output from GetOutputWidthPixel() and GetOutputHeightPixel(), which both return a value of type tools::Long. Replaced the use of sal_uLong for aSquare and aCandidateSquare with tools::Long to match. This is a follow-up patch that fixes the incorrect use of sal_uInt64 from a previous patch. Change-Id: I402c9ed6a949f64217b0833b513bf92b1593d62c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195038 Tested-by: Jenkins Reviewed-by: Mike Kaganski <[email protected]> diff --git a/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx b/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx index 797b22c28fe1..3546bb2a9308 100644 --- a/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx +++ b/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx @@ -169,10 +169,10 @@ VclPtr<VirtualDevice> VDevBuffer::alloc(OutputDevice& rOutDev, const Size& rSize if (bCandidateOkay) { // found and candidate are valid - const sal_uInt64 aSquare(aFound->buf->GetOutputWidthPixel() - * aFound->buf->GetOutputHeightPixel()); - const sal_uInt64 aCandidateSquare(a->buf->GetOutputWidthPixel() - * a->buf->GetOutputHeightPixel()); + const tools::Long aSquare(aFound->buf->GetOutputWidthPixel() + * aFound->buf->GetOutputHeightPixel()); + const tools::Long aCandidateSquare(a->buf->GetOutputWidthPixel() + * a->buf->GetOutputHeightPixel()); if (aCandidateSquare < aSquare) {
