]> git.eshelyaron.com Git - emacs.git/commitdiff
(byte-compile-declare-function): Reverse branches of if statement.
authorGlenn Morris <rgm@gnu.org>
Sun, 2 Dec 2007 21:41:33 +0000 (21:41 +0000)
committerGlenn Morris <rgm@gnu.org>
Sun, 2 Dec 2007 21:41:33 +0000 (21:41 +0000)
lisp/emacs-lisp/bytecomp.el

index 0f7546bc6425cfdc9ef4ddc48bd57760bb15f5f9..e6418a5e3314643e3d9228d669ea17c1ab39c5c9 100644 (file)
@@ -2823,10 +2823,10 @@ If FORM is a lambda or a macro, byte-compile it as a function."
 (put 'declare-function 'byte-hunk-handler 'byte-compile-declare-function)
 (defun byte-compile-declare-function (form)
   (push (cons (nth 1 form)
-              (if (or (< (length form) 4)   ; arglist not specified
-                      (not (listp (nth 3 form))))
-                  t
-                (list 'declared (nth 3 form))))
+              (if (and (> (length form) 3)
+                       (listp (nth 3 form)))
+                  (list 'declared (nth 3 form))
+                t))                     ; arglist not specified
         byte-compile-function-environment)
   nil)