summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-10-20 09:24:00 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-10-20 13:40:55 +0200
commit6a902de6db0537df0b7e13df062dc89006f98581 (patch)
treee3608c9b4b6a09ae358ae2dd197c653d73e9e85e /vcl
parent28584366a4ce57df988fadea98c81604d7c2c564 (diff)
ofz+ubsan: left shift of negative value
Change-Id: I304532162fc75b69807d5e45227368ab25736b93 Reviewed-on: https://gerrit.libreoffice.org/43586 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/generic/glyphs/glyphcache.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/generic/glyphs/glyphcache.cxx b/vcl/unx/generic/glyphs/glyphcache.cxx
index c4c54ad0dffe..424fd31eb21f 100644
--- a/vcl/unx/generic/glyphs/glyphcache.cxx
+++ b/vcl/unx/generic/glyphs/glyphcache.cxx
@@ -77,7 +77,7 @@ inline
size_t GlyphCache::IFSD_Hash::operator()( const FontSelectPattern& rFontSelData ) const
{
// TODO: is it worth to improve this hash function?
- sal_IntPtr nFontId = reinterpret_cast<sal_IntPtr>( rFontSelData.mpFontData );
+ sal_uIntPtr nFontId = reinterpret_cast<sal_uIntPtr>(rFontSelData.mpFontData);
if (rFontSelData.maTargetName.indexOf(FontSelectPatternAttributes::FEAT_PREFIX)
!= -1)