Mercurial > emacs
diff lisp/files.el @ 62402:a7e02ef1e3d6
Replace `string-to-int' by `string-to-number'.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Mon, 16 May 2005 11:33:47 +0000 |
parents | 67ed9a824941 |
children | ec0b3f67cb69 21eea50897a7 f042e7c0fe20 |
line wrap: on
line diff
--- a/lisp/files.el Mon May 16 10:07:59 2005 +0000 +++ b/lisp/files.el Mon May 16 11:33:47 2005 +0000 @@ -2988,7 +2988,7 @@ the index in the name where the version number begins." (if (and (string-match "[0-9]+~$" fn backup-extract-version-start) (= (match-beginning 0) backup-extract-version-start)) - (string-to-int (substring fn backup-extract-version-start -1)) + (string-to-number (substring fn backup-extract-version-start -1)) 0)) ;; I believe there is no need to alter this behavior for VMS; @@ -4552,7 +4552,7 @@ (if (string-match "ls (.*utils) \\([0-9.]*\\)$" version-out) (let* ((version (match-string 1 version-out)) (split (split-string version "[.]")) - (numbers (mapcar 'string-to-int split)) + (numbers (mapcar 'string-to-number split)) (min '(5 2 1)) comparison) (while (and (not comparison) (or numbers min))