diff options
author | PJ Fanning <fanningpj@apache.org> | 2022-08-19 09:31:14 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2022-08-19 09:31:14 +0000 |
commit | 03a39fd9dc16526a6767e623e3e98ea5910156db (patch) | |
tree | 59093da282abf2b4bf2cee8f74c93976b64958f2 | |
parent | 9d7d2f26e028c3560c6649b9196f403c99975955 (diff) | |
download | poi-03a39fd9dc16526a6767e623e3e98ea5910156db.tar.gz poi-03a39fd9dc16526a6767e623e3e98ea5910156db.zip |
more int narrowing
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903562 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | poi-scratchpad/src/main/java/org/apache/poi/hslf/record/NotesAtom.java | 6 | ||||
-rw-r--r-- | poi-scratchpad/src/main/java/org/apache/poi/hslf/record/SlideAtom.java | 12 |
2 files changed, 9 insertions, 9 deletions
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/NotesAtom.java b/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/NotesAtom.java index 82ab6d13de..b4239d4fdd 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/NotesAtom.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/NotesAtom.java @@ -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 diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/SlideAtom.java b/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/SlideAtom.java index 605539b8d2..42fa25e1c9 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/SlideAtom.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hslf/record/SlideAtom.java @@ -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); |