sc/source/filter/xcl97/xcl97rec.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7850e70d5e98bbfeb536d9644b618d0782da30a6
Author: Stephan Bergmann <sberg...@redhat.com>
Date:   Mon Jun 26 11:23:00 2017 +0200

    Write 0 of type 'unsigned char'
    
    regression introduced with ac2d415a52f22caf0012b7d9b17d015aca27db9d
    "loplugin:oncevar in sc"
    
    Change-Id: I1073e7e8b67ddf1dd633f004322c6bc46b9a8052

diff --git a/sc/source/filter/xcl97/xcl97rec.cxx 
b/sc/source/filter/xcl97/xcl97rec.cxx
index 6f7a57db4967..93c9cf4f11ba 100644
--- a/sc/source/filter/xcl97/xcl97rec.cxx
+++ b/sc/source/filter/xcl97/xcl97rec.cxx
@@ -1587,7 +1587,7 @@ void XclExpSheetProtectOptions::WriteBody( XclExpStream& 
rStrm )
     rStrm << nBytes;
 
     for (int i = 0; i < 9; ++i)
-        rStrm << sal_Int32(0);
+        rStrm << static_cast<unsigned char>(0);
 
     nBytes = 0x0200;
     rStrm << nBytes;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to