Fix byte compilation warning in bindat.el
* lisp/emacs-lisp/bindat.el (bindat--unpack-item): Avoid a byte compilation warning by using unibyte-string instead of concat + string-make-unibyte.
This commit is contained in:
parent
826e63e73d
commit
0c01734a32
1 changed files with 2 additions and 2 deletions
|
@ -256,7 +256,7 @@
|
|||
(let ((s (substring bindat-raw bindat-idx (+ bindat-idx len))))
|
||||
(setq bindat-idx (+ bindat-idx len))
|
||||
(if (stringp s) s
|
||||
(string-make-unibyte (concat s)))))
|
||||
(apply #'unibyte-string s))))
|
||||
((eq type 'strz)
|
||||
(let ((i 0) s)
|
||||
(while (and (< i len) (/= (aref bindat-raw (+ bindat-idx i)) 0))
|
||||
|
@ -264,7 +264,7 @@
|
|||
(setq s (substring bindat-raw bindat-idx (+ bindat-idx i)))
|
||||
(setq bindat-idx (+ bindat-idx len))
|
||||
(if (stringp s) s
|
||||
(string-make-unibyte (concat s)))))
|
||||
(apply #'unibyte-string s))))
|
||||
((eq type 'vec)
|
||||
(let ((v (make-vector len 0)) (i 0) (vlen 1))
|
||||
(if (consp vectype)
|
||||
|
|
Loading…
Add table
Reference in a new issue