mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 19:50:24 +02:00
Fix incorrect display of wide strings in decompilation
A byte ordering error caused incorrect display of wide strings when using the ",c" decompilation from the REPL. * module/language/assembly/decompile-bytecode.scm (decode-bytecode): wide strings are encoded in native endianness
This commit is contained in:
parent
3a5bc4fada
commit
b158c2c3b5
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@
|
||||||
(let lp ((i 0))
|
(let lp ((i 0))
|
||||||
(if (= i len)
|
(if (= i len)
|
||||||
`(,inst ,(if (eq? inst 'load-wide-string)
|
`(,inst ,(if (eq? inst 'load-wide-string)
|
||||||
(utf32->string seq)
|
(utf32->string seq (native-endianness))
|
||||||
seq))
|
seq))
|
||||||
(begin
|
(begin
|
||||||
(sequence-set! seq i (pop))
|
(sequence-set! seq i (pop))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue