mirror of
https://github.com/corda/corda.git
synced 2025-04-19 08:36:39 +00:00
implement l2d and l2f in interpret.cpp
This commit is contained in:
parent
1b098c9267
commit
c7a357aa5e
@ -1942,6 +1942,14 @@ interpret(Thread* t)
|
||||
ip = (ip - 5) + static_cast<int32_t>(offset);
|
||||
} goto loop;
|
||||
|
||||
case l2d: {
|
||||
pushDouble(t, static_cast<double>(static_cast<int64_t>(popLong(t))));
|
||||
} goto loop;
|
||||
|
||||
case l2f: {
|
||||
pushFloat(t, static_cast<float>(static_cast<int64_t>(popLong(t))));
|
||||
} goto loop;
|
||||
|
||||
case l2i: {
|
||||
pushInt(t, static_cast<int32_t>(popLong(t)));
|
||||
} goto loop;
|
||||
|
Loading…
x
Reference in New Issue
Block a user