mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
samples: fix console output in pi example for Wasm BE
This commit is contained in:
parent
6613d379ec
commit
28c64ef7d8
|
@ -37,8 +37,9 @@
|
||||||
let memory = new Int8Array(instance.exports.memory.buffer);
|
let memory = new Int8Array(instance.exports.memory.buffer);
|
||||||
let string = "";
|
let string = "";
|
||||||
for (let i = 0; i < count; ++i) {
|
for (let i = 0; i < count; ++i) {
|
||||||
string += $rt_putStdoutCustom(memory[address++]);
|
string += String.fromCharCode(memory[address++]);
|
||||||
}
|
}
|
||||||
|
$rt_putStdoutCustom(string);
|
||||||
}
|
}
|
||||||
o.teavm.putwcharsOut = putwchars;
|
o.teavm.putwcharsOut = putwchars;
|
||||||
o.teavm.putwcharsErr = putwchars;
|
o.teavm.putwcharsErr = putwchars;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user