]> git.eshelyaron.com Git - emacs.git/commitdiff
Compilation warning fix for disass.el
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 13 Jun 2019 11:54:53 +0000 (13:54 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 13 Jun 2019 11:54:53 +0000 (13:54 +0200)
* lisp/emacs-lisp/disass.el (disassemble-1): Remove a
string-as-unibyte that probably doesn't do anything, because the
string in question should be unibyte anyway.  If the assert fails,
revert the patch.

lisp/emacs-lisp/disass.el

index 3fc22247fa6d5acaa17e2bcecd4f51781b9ef7cb..7625ff829fc73b0a1951803b8eb446ba5958ecfd 100644 (file)
@@ -168,7 +168,8 @@ OBJ should be a call to BYTE-CODE generated by the byte compiler."
       (fetch-bytecode obj)
       (setq bytes (aref obj 1)
            constvec (aref obj 2)))
-    (let ((lap (byte-decompile-bytecode (string-as-unibyte bytes) constvec))
+    (cl-assert (not (multibyte-string-p bytes)))
+    (let ((lap (byte-decompile-bytecode bytes constvec))
          op arg opname pc-value)
       (let ((tagno 0)
            tmp