mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-09 23:40:29 +02:00
bug fix to enable code "packing"
* module/system/vm/conv.scm (code-pack): Fix so that we actually recognize (make-int8 1) and turn it into (make-int8:1).
This commit is contained in:
parent
ec5cb82591
commit
b3b45ac15e
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
(define (code-pack code)
|
(define (code-pack code)
|
||||||
(pmatch code
|
(pmatch code
|
||||||
((inst ,n) (guard (integer? n))
|
((,inst ,n) (guard (integer? n))
|
||||||
(cond ((< n 10)
|
(cond ((< n 10)
|
||||||
(let ((abbrev (string->symbol (format #f "~A:~A" inst n))))
|
(let ((abbrev (string->symbol (format #f "~A:~A" inst n))))
|
||||||
(if (instruction? abbrev) (list abbrev) code)))
|
(if (instruction? abbrev) (list abbrev) code)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue