vm: fix float arrays init values

This commit is contained in:
Irmen de Jong 2023-04-04 00:06:55 +02:00
parent c593e4b500
commit 4861973899
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ TODO
For next minor release
^^^^^^^^^^^^^^^^^^^^^^
newexpr in VM: fix float printing from arrays
newxpr vm: fix bouncegfx (crash), bsieve (loops), primes (way too many), textelite (map is wrong, incomplete planet info)
...

View File

@ -289,7 +289,7 @@ class VmProgramLoader {
}
DataType.ARRAY_F -> {
for(elt in it) {
memory.setSW(addr, elt.number!!.toInt().toShort())
memory.setFloat(addr, elt.number!!.toFloat())
addr+=program.options.compTarget.machine.FLOAT_MEM_SIZE
}
}