https://bugs.documentfoundation.org/show_bug.cgi?id=99694
Bug ID: 99694
Summary: VSC2015 warning C4334 in gifread.cxx and
vbainputstream.cxx
Product: LibreOffice
Version: 5.2.0.0.alpha1
Hardware: x86-64 (AMD64)
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: LibreOffice
Assignee: [email protected]
Reporter: [email protected]
Created attachment 124867
--> https://bugs.documentfoundation.org/attachment.cgi?id=124867&action=edit
Modified gifread.cxx
Sorry to post as bug rather than submit change via gerrit, I haven't tried to
register yet until I get some confidence I can build x64 on Windows with
VSC2015.
Warning treated as Error by Visual Studio Community 2015, result of 32-bit
shift implicitly converted to 64 bits (was 64-bit shift intended?)
The result of 32-bit shift was implicitly converted to 64-bits, and the
compiler suspects that a 64-bit shift was intended. To resolve this warning,
either use 64-bit shift, or explicitly cast the shift result to 64-bit.
This prevents compiling x64 from source, but the same can be compiled OK for
x86.
Following Microsoft recommendation :-
https://msdn.microsoft.com/en-us/library/ke55d167.aspx
Modified attached copies.
D:\lode\dev\x64\vcl\source\filter\igif\gifread.cxx
at line 251
ReadPaletteEntries( &aGPalette, 1i64 << ( ( nRF & 7 ) + 1 ) );
at line 462
ReadPaletteEntries( pPal, 1i64 << ( (nFlags & 7 ) + 1 ) );
D:\lode\dev\x64\oox\source\ole\vbainputstream.cxx
at line 160
while( static_cast< size_t >( 1i64 << nBitCount ) < maChunk.size() )
++nBitCount;
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs