aboutsummaryrefslogtreecommitdiffstats
path: root/poi-scratchpad
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2022-08-19 09:31:14 +0000
committerPJ Fanning <fanningpj@apache.org>2022-08-19 09:31:14 +0000
commit03a39fd9dc16526a6767e623e3e98ea5910156db (patch)
tree59093da282abf2b4bf2cee8f74c93976b64958f2 /poi-scratchpad
parent9d7d2f26e028c3560c6649b9196f403c99975955 (diff)
downloadpoi-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
Diffstat (limited to 'poi-scratchpad')
-rw-r--r--poi-scratchpad/src/main/java/org/apache/poi/hslf/record/NotesAtom.java6
-rw-r--r--poi-scratchpad/src/main/java/org/apache/poi/hslf/record/SlideAtom.java12
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);