mirror of
https://github.com/corda/corda.git
synced 2025-01-01 02:36:44 +00:00
Floats are always passed as doubles in varargs calls. Properly pop them
off the stack and cast them
This commit is contained in:
parent
7bc85a1247
commit
d2053d51d2
@ -2663,6 +2663,14 @@ pushArguments(Thread* t, object this_, const char* spec, bool indirectObjects,
|
||||
++ s;
|
||||
pushLong(t, va_arg(a, uint64_t));
|
||||
break;
|
||||
|
||||
case 'F': {
|
||||
++ s;
|
||||
float f = va_arg(a, double);
|
||||
uint32_t i;
|
||||
memcpy(&i, &f, 4);
|
||||
pushInt(t, i);
|
||||
} break;
|
||||
|
||||
default:
|
||||
++ s;
|
||||
|
Loading…
Reference in New Issue
Block a user