diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-03-04 22:30:28 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-03-05 08:48:30 +0100 |
commit | 8c536c6d8ddad1d7f2fc9875450a16f47fcd6b89 (patch) | |
tree | 316fe92187368812d226666a8770babe1109a694 /sw | |
parent | 18bef257d1cc3c1323f2f5561d6c897d26756193 (diff) |
Change type of buffer to unsigned char
This change has no actual effect on the results, but silences benign Clang
-fsanitize=implicit-signed-integer-truncation warnings.
Change-Id: I0e96d998f9030c5bb4431dc0ccd689c8f2f3aeea
Reviewed-on: https://gerrit.libreoffice.org/68711
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/docxattributeoutput.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index 504fa6033b36..a7c69319243f 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -6541,7 +6541,7 @@ void DocxAttributeOutput::EmbedFontStyle( const OUString& name, int tag, FontFam fontKey[ 0 ] = fontKey[ 15 ] = m_nextFontId % 256; fontKeyStr[ 1 ] = fontKeyStr[ 35 ] = toHexChar(( m_nextFontId % 256 ) / 16 ); fontKeyStr[ 2 ] = fontKeyStr[ 36 ] = toHexChar(( m_nextFontId % 256 ) % 16 ); - char buffer[ 4096 ]; + unsigned char buffer[ 4096 ]; sal_uInt64 readSize; file.read( buffer, 32, readSize ); if( readSize < 32 ) |