Skip to content

Commit

Permalink
small change
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Dec 13, 2023
1 parent d9e17b0 commit 50a3dc6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,7 @@ protected static <T extends RealType<T> & NativeType<T>> SharedMemoryArrayWin bu
SharedMemoryArrayWin shma = null;
if (rai == null) {
shma = new SharedMemoryArrayWin(name, -1, null, null);
}
if (Util.getTypeFromInterval(rai) instanceof ByteType) {
} else if (Util.getTypeFromInterval(rai) instanceof ByteType) {
int size = 1;
for (long i : rai.dimensionsAsLongArray()) {size *= i;}
shma = new SharedMemoryArrayWin(name, size, CommonUtils.getDataType(rai), rai.dimensionsAsLongArray());
Expand Down

0 comments on commit 50a3dc6

Please sign in to comment.