(json-read-number): New arg. Handle explicitly signed numbers.
[bpt/emacs.git] / lisp / jka-compr.el
index a5792ed..fe7adb9 100644 (file)
@@ -273,9 +273,9 @@ There should be no more than seven characters after the final `/'."
                       (equal (if (stringp start)
                                  (substring start 0 (min (length start)
                                                          (length magic)))
-                                (let ((from (or start (point-min)))
-                                      (to (min (or end (point-max))
-                                               (+ from (length magic)))))
+                                (let* ((from (or start (point-min)))
+                                       (to (min (or end (point-max))
+                                                (+ from (length magic)))))
                                   (buffer-substring from to)))
                              magic))))
        (let ((can-append (jka-compr-info-can-append info))