vcl/unx/generic/print/prtsetup.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 42103c6213c0950e33604c88c609f12b958156d2
Author:     Miklos Vajna <[email protected]>
AuthorDate: Mon Dec 8 09:21:41 2025 +0100
Commit:     Caolán McNamara <[email protected]>
CommitDate: Mon Dec 8 10:26:45 2025 +0100

    vcl: fix C4245 signed/unsigned mismatch
    
    vcl/unx/generic/print/prtsetup.cxx(357): warning C4245: 'return': 
conversion from 'int' to 'sal_uLong', signed/unsigned mismatch
    
    Seen on Windows with --enable-headless.
    
    Just silence it for now, assuming the actual behavior was there on Linux
    already without problems.
    
    Change-Id: I56ca85a4576e6505a46e23c661443a74d5d9d2ee
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195213
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/vcl/unx/generic/print/prtsetup.cxx 
b/vcl/unx/generic/print/prtsetup.cxx
index 6869dcecd919..a3884de10203 100644
--- a/vcl/unx/generic/print/prtsetup.cxx
+++ b/vcl/unx/generic/print/prtsetup.cxx
@@ -354,7 +354,7 @@ sal_uLong RTSDevicePage::getColorDevice() const
         case 1:
             return 1;
         case 2:
-            return -1;
+            return static_cast<sal_uLong>(-1);
     }
     return 0;
 }

Reply via email to