Skip to content

Commit

Permalink
8286390: Address possibly lossy conversions in jdk.incubator.foreign …
Browse files Browse the repository at this point in the history
…moved to java.base

Reviewed-by: dfuchs
  • Loading branch information
JornVernee committed May 16, 2022
1 parent 22139c3 commit 743c779
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -212,7 +212,7 @@ private MethodHandle specialize(MethodHandle leafHandle) {

for (int i = 0; i < highLevelType.parameterCount(); i++) {
List<Binding> bindings = callingSequence.argumentBindings(i);
argInsertPos += bindings.stream().filter(Binding.VMStore.class::isInstance).count() + 1;
argInsertPos += ((int) bindings.stream().filter(Binding.VMStore.class::isInstance).count()) + 1;
// We interpret the bindings in reverse since we have to construct a MethodHandle from the bottom up
for (int j = bindings.size() - 1; j >= 0; j--) {
Binding binding = bindings.get(j);
Expand Down

1 comment on commit 743c779

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.