From: Andy Wingo Date: Sat, 18 Oct 2008 14:06:43 +0000 (+0200) Subject: bug fix to enable code "packing" X-Git-Url: https://git.hcoop.net/bpt/guile.git/commitdiff_plain/b3b45ac15ef508623dd9031f3c7e69dff7949801 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). --- diff --git a/module/system/vm/conv.scm b/module/system/vm/conv.scm index 84bd28438..513680aaa 100644 --- a/module/system/vm/conv.scm +++ b/module/system/vm/conv.scm @@ -34,7 +34,7 @@ (define (code-pack code) (pmatch code - ((inst ,n) (guard (integer? n)) + ((,inst ,n) (guard (integer? n)) (cond ((< n 10) (let ((abbrev (string->symbol (format #f "~A:~A" inst n)))) (if (instruction? abbrev) (list abbrev) code)))