mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +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:
@ -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;
|
||||
|
Reference in New Issue
Block a user