mirror of
https://github.com/corda/corda.git
synced 2025-01-31 16:35:43 +00:00
fix incorrect jvalue marshalling in compile.cpp
4512a9a introduced a new ArgumentList constructor which was handling some types incorrectly (e.g. implicitly converting floats to integers). This commit fixes it.
This commit is contained in:
parent
5f1b086150
commit
86be0c409c
@ -8249,15 +8249,15 @@ class ArgumentList {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'D':
|
case 'D':
|
||||||
addLong(arguments[index++].d);
|
addLong(doubleToBits(arguments[index++].d));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'F':
|
case 'F':
|
||||||
addLong(arguments[index++].f);
|
addInt(floatToBits(arguments[index++].f));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
addLong(arguments[index++].i);
|
addInt(arguments[index++].i);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user