mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
fixes i2f i2d implementation. Fixes image drawing bugs on Mac OS X.
Also fixes a crash caused by implementing StringBuffer.toString(float)
This commit is contained in:
@ -1479,11 +1479,11 @@ interpret(Thread* t)
|
||||
} goto loop;
|
||||
|
||||
case i2d: {
|
||||
pushDouble(t, static_cast<double>(popInt(t)));
|
||||
pushDouble(t, static_cast<double>(static_cast<int32_t>(popInt(t))));
|
||||
} goto loop;
|
||||
|
||||
case i2f: {
|
||||
pushFloat(t, static_cast<float>(popInt(t)));
|
||||
pushFloat(t, static_cast<float>(static_cast<int32_t>(popInt(t))));
|
||||
} goto loop;
|
||||
|
||||
case i2l: {
|
||||
|
Reference in New Issue
Block a user