diff --git a/src/compile.cpp b/src/compile.cpp index 25fa2c5ab5..3a4bc7ed63 100644 --- a/src/compile.cpp +++ b/src/compile.cpp @@ -8037,10 +8037,17 @@ class ArgumentList { break; case 'J': - case 'D': addLong(va_arg(arguments, uint64_t)); break; + case 'D': + addLong(doubleToBits(va_arg(arguments, double))); + break; + + case 'F': + addInt(floatToBits(va_arg(arguments, double))); + break; + default: addInt(va_arg(arguments, uint32_t)); break;