mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-29 00:10:21 +02:00
fix the disassembler for load-string, load-symbol et al
* module/language/assembly/decompile-bytecode.scm (decode-bytecode): Fix decoding of lengths in loader instructions.
This commit is contained in:
parent
89bbf35596
commit
8403b9f59b
1 changed files with 2 additions and 1 deletions
|
@ -73,7 +73,8 @@
|
|||
((eq? inst 'load-program)
|
||||
(decode-load-program pop))
|
||||
((< (instruction-length inst) 0)
|
||||
(let* ((len (decode-length pop))
|
||||
(let* ((len (let* ((a (pop)) (b (pop)) (c (pop)))
|
||||
(+ (ash a 16) (ash b 8) c)))
|
||||
(str (make-string len)))
|
||||
(let lp ((i 0))
|
||||
(if (= i len)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue