Skip to content

Commit 0ace82c

Browse files
committed
Bugfix in writeMatrixHeader methods
1 parent 8b6d3b7 commit 0ace82c

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>net.sourceforge.streamsupport</groupId>
55
<artifactId>jamu</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.4.4</version>
7+
<version>1.4.5-SNAPSHOT</version>
88
<name>JAMU</name>
99
<description>Java Matrix Utilities built on top of Intel MKL</description>
1010
<url>https://github.com/stefan-zobel/JAMU/</url>

src/main/java/net/jamu/matrix/IO.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020 Stefan Zobel
2+
* Copyright 2020, 2024 Stefan Zobel
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -38,9 +38,7 @@ static long writeMatrixHeaderB(int rows, int cols, int datatype,
3838
os.write(BIG_ENDIAN);
3939
os.write(datatype);
4040
putIntB(rows, bytes, os);
41-
os.write(bytes, 0, 4);
4241
putIntB(cols, bytes, os);
43-
os.write(bytes, 0, 4);
4442
return 10L;
4543
}
4644

@@ -50,9 +48,7 @@ static long writeMatrixHeaderL(int rows, int cols, int datatype,
5048
os.write(LITTLE_ENDIAN);
5149
os.write(datatype);
5250
putIntL(rows, bytes, os);
53-
os.write(bytes, 0, 4);
5451
putIntL(cols, bytes, os);
55-
os.write(bytes, 0, 4);
5652
return 10L;
5753
}
5854

0 commit comments

Comments
 (0)