Skip to content

Commit 4f32ca9

Browse files
committed
unsafe
1 parent 487585a commit 4f32ca9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/main/java/org/apache/sysds/runtime/compress/colgroup/mapping/MapToCharPByte.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,7 @@ public void write(DataOutput out) throws IOException {
142142
out.writeInt(_data_c.length);
143143
for(int i = 0; i < _data_c.length; i++)
144144
out.writeChar(_data_c[i]);
145-
for(int i = 0; i < _data_c.length; i++)
146-
out.writeByte(_data_b[i]);
145+
out.write(_data_b);
147146
}
148147

149148
protected static MapToCharPByte readFields(DataInput in) throws IOException {

src/main/java/org/apache/sysds/runtime/frame/data/columns/BitSetArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public synchronized void set(int index, boolean value) {
107107
@Override
108108
public void setNullsFromString(int rl, int ru, Array<String> value) {
109109

110-
final boolean unsafe = ru % 64 != 63 || rl % 64 != 0;
110+
final boolean unsafe = ru % 64 != 0 || rl % 64 != 0;
111111
// ensure that it is safe to modify the values in the ranges.
112112

113113
if(unsafe) {

0 commit comments

Comments
 (0)