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:
PJ Fanning 2022-08-19 09:31:14 +00:00
parent 9d7d2f26e0
commit 03a39fd9dc
2 changed files with 9 additions and 9 deletions

View File

@ -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

View File

@ -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);