jnz / q3vm

Q3VM - Single file (vm.c) bytecode virtual machine/interpreter for C-language input

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Data type "double" not supported in virtual machines.

jnz opened this issue · comments

The double (64-bit) data type is silently converted to 32-bit floats in the Quake 3 VM.
This is the default behaviour and probably won't be changed.

Just in theory would it break existing Q3A code if there would be double support? Not that I want to implement it I'm still searching for a way to avoid c89.

An updated Q3VM interpreter would still run old firmwares, as the old firmware would not include new op codes. But a modified LCC would not be compatible. And I am not sure if I want to modify LCC. But if there is demand, this is probably doable. I've removed the wontfix label. :-)