From 604ea1bfe06a8a19b084b5a6a603d8c1ba041f0a Mon Sep 17 00:00:00 2001 From: Szymon Kłos Date: Thu, 13 Jan 2022 16:09:24 +0100 Subject: Fix ambiguous error in VS Change-Id: If18ef06f5a27a4266b21df4ba07bd5bc01255f55 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128381 Tested-by: Jenkins CollaboraOffice Reviewed-by: Mike Kaganski (cherry picked from commit af168ae749dfd816fe029bbca5967fc3d5a1aa81) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129439 Tested-by: Jenkins Reviewed-by: Dennis Francis --- sfx2/source/view/ipclient.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sfx2/source/view') diff --git a/sfx2/source/view/ipclient.cxx b/sfx2/source/view/ipclient.cxx index 73fe6f241bae..92b763327ea9 100644 --- a/sfx2/source/view/ipclient.cxx +++ b/sfx2/source/view/ipclient.cxx @@ -94,9 +94,9 @@ public: tools::Rectangle lcl_negateRectX(const tools::Rectangle& rRect) { return tools::Rectangle( - std::max(0l, -rRect.Right()), + std::max(static_cast(0l), -rRect.Right()), rRect.Top(), - std::max(0l, -rRect.Left()), + std::max(static_cast(0l), -rRect.Left()), rRect.Bottom()); } -- cgit