mirror of
https://github.com/irmen/prog8.git
synced 2024-06-25 15:29:45 +00:00
vm: fix float arrays init values
This commit is contained in:
parent
c593e4b500
commit
4861973899
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user