diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-10-20 09:24:00 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-10-20 13:40:55 +0200 |
commit | 6a902de6db0537df0b7e13df062dc89006f98581 (patch) | |
tree | e3608c9b4b6a09ae358ae2dd197c653d73e9e85e /vcl/unx | |
parent | 28584366a4ce57df988fadea98c81604d7c2c564 (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/unx')
-rw-r--r-- | vcl/unx/generic/glyphs/glyphcache.cxx | 2 |
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) |