Skip to content

Commit

Permalink
Crucial fix for Float64ArrayPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Oct 24, 2021
1 parent 599b721 commit d6d116e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Copyright (c) 2020-2021 Software Architecture Group, Hasso Plattner Institute
* Copyright (c) 2021 Oracle and/or its affiliates
*
* Licensed under the MIT License.
*/
Expand Down Expand Up @@ -28,7 +29,7 @@ public class Float64ArrayPlugin extends AbstractPrimitiveFactoryHolder {

@Override
public List<? extends NodeFactory<? extends AbstractPrimitiveNode>> getFactories() {
return FloatArrayPluginFactory.getFactories();
return Float64ArrayPluginFactory.getFactories();
}

@GenerateNodeFactory
Expand Down Expand Up @@ -173,7 +174,7 @@ protected static final NativeObject doFromFloatArray(final NativeObject receiver
final long[] longs = receiver.getLongStorage();
final int[] ints = other.getIntStorage();
for (int i = 0; i < longs.length; i++) {
longs[i] = ints[i];
longs[i] = Double.doubleToRawLongBits(Float.intBitsToFloat(ints[i]));
}
return receiver;
}
Expand Down

0 comments on commit d6d116e

Please sign in to comment.