mirror of
https://github.com/irmen/prog8.git
synced 2025-10-25 05:18:38 +00:00
vm: fix float arrays init values
This commit is contained in:
@@ -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)
|
||||
|
||||
...
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user