mirror of https://github.com/apache/poi.git
more int narrowing
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903562 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9d7d2f26e0
commit
03a39fd9dc
|
@ -98,9 +98,9 @@ public final class NotesAtom extends RecordAtom {
|
|||
|
||||
// Flags
|
||||
short flags = 0;
|
||||
if(followMasterObjects) { flags += 1; }
|
||||
if(followMasterScheme) { flags += 2; }
|
||||
if(followMasterBackground) { flags += 4; }
|
||||
if(followMasterObjects) { flags += (short) 1; }
|
||||
if(followMasterScheme) { flags += (short) 2; }
|
||||
if(followMasterBackground) { flags += (short) 4; }
|
||||
writeLittleEndian(flags,out);
|
||||
|
||||
// Reserved fields
|
||||
|
|
|
@ -148,9 +148,9 @@ public final class SlideAtom extends RecordAtom {
|
|||
|
||||
// Flags
|
||||
short flags = 0;
|
||||
if(followMasterObjects) { flags += 1; }
|
||||
if(followMasterScheme) { flags += 2; }
|
||||
if(followMasterBackground) { flags += 4; }
|
||||
if(followMasterObjects) { flags += (short) 1; }
|
||||
if(followMasterScheme) { flags += (short) 2; }
|
||||
if(followMasterBackground) { flags += (short) 4; }
|
||||
writeLittleEndian(flags, out);
|
||||
|
||||
// Reserved data
|
||||
|
|
Loading…
Reference in New Issue