diff options
Diffstat (limited to 'toolkit/source/awt/animatedimagespeer.cxx')
-rw-r--r-- | toolkit/source/awt/animatedimagespeer.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/toolkit/source/awt/animatedimagespeer.cxx b/toolkit/source/awt/animatedimagespeer.cxx index e056ef04d55c..e833f366aa21 100644 --- a/toolkit/source/awt/animatedimagespeer.cxx +++ b/toolkit/source/awt/animatedimagespeer.cxx @@ -31,6 +31,7 @@ #include <comphelper/namedvaluecollection.hxx> #include <comphelper/processfactory.hxx> +#include <o3tl/safeint.hxx> #include <rtl/ustrbuf.hxx> #include <tools/diagnose_ex.h> #include <tools/urlobj.hxx> @@ -245,7 +246,7 @@ namespace toolkit // found a set? std::vector< Image > aImages; - if ( ( nPreferredSet >= 0 ) && ( size_t( nPreferredSet ) < nImageSetCount ) ) + if ( ( nPreferredSet >= 0 ) && ( o3tl::make_unsigned( nPreferredSet ) < nImageSetCount ) ) { // => set the images ::std::vector< CachedImage > const& rImageSet( i_data.aCachedImageSets[ nPreferredSet ] ); |