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
|
||||
|
|
|
@ -143,15 +143,15 @@ public final class SlideAtom extends RecordAtom {
|
|||
layoutAtom.writeOut(out);
|
||||
|
||||
// IDs
|
||||
writeLittleEndian(masterID,out);
|
||||
writeLittleEndian(notesID,out);
|
||||
writeLittleEndian(masterID, out);
|
||||
writeLittleEndian(notesID, out);
|
||||
|
||||
// Flags
|
||||
short flags = 0;
|
||||
if(followMasterObjects) { flags += 1; }
|
||||
if(followMasterScheme) { flags += 2; }
|
||||
if(followMasterBackground) { flags += 4; }
|
||||
writeLittleEndian(flags,out);
|
||||
if(followMasterObjects) { flags += (short) 1; }
|
||||
if(followMasterScheme) { flags += (short) 2; }
|
||||
if(followMasterBackground) { flags += (short) 4; }
|
||||
writeLittleEndian(flags, out);
|
||||
|
||||
// Reserved data
|
||||
out.write(reserved);
|
||||
|
|
Loading…
Reference in New Issue