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

New commits:
commit b93a5befa557633526fd243495ff8257c698c62a
Author:     Miklos Vajna <[email protected]>
AuthorDate: Mon Dec 8 09:21:41 2025 +0100
Commit:     Miklos Vajna <[email protected]>
CommitDate: Mon Dec 8 14:11:52 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/+/195222
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <[email protected]>

diff --git a/vcl/unx/generic/print/prtsetup.cxx 
b/vcl/unx/generic/print/prtsetup.cxx
index 630debb88444..7fbea31e7cec 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