summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/generic/print/genprnpsp.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/unx/generic/print/genprnpsp.cxx b/vcl/unx/generic/print/genprnpsp.cxx
index e7570538070c..7b985ff425bc 100644
--- a/vcl/unx/generic/print/genprnpsp.cxx
+++ b/vcl/unx/generic/print/genprnpsp.cxx
@@ -35,6 +35,7 @@
#include <sys/stat.h>
#include <comphelper/fileurl.hxx>
+#include <o3tl/safeint.hxx>
#include <rtl/ustring.hxx>
#include <sal/log.hxx>
@@ -716,7 +717,7 @@ OUString PspSalInfoPrinter::GetPaperBinName( const ImplJobSetup* pJobSetup, sal_
if( aData.m_pParser )
{
const PPDKey* pKey = aData.m_pParser ? aData.m_pParser->getKey( "InputSlot" ): nullptr;
- if( ! pKey || nPaperBin >= static_cast<sal_uInt16>(pKey->countValues()) )
+ if( ! pKey || nPaperBin >= o3tl::make_unsigned(pKey->countValues()) )
return aData.m_pParser->getDefaultInputSlot();
const PPDValue* pValue = pKey->getValue( nPaperBin );
if( pValue )