fix(emacs/lean-option.el): don't use deprecated function, string-to-int

string-to-int was deprecated since Emacs 22.
string-to-number should be used instead of string-to-int.
This commit is contained in:
Syohei YOSHIDA 2016-01-14 12:50:54 +09:00 committed by Soonho Kong
parent 60861d7dea
commit 885c62648f

View file

@ -76,7 +76,7 @@
(defun lean-option-read-int (prompt)
(let* ((str (read-string prompt))
(val (string-to-int str))
(val (string-to-number str))
tmp-str)
(setq tmp-str (int-to-string val))
(if (and (integerp val)
@ -87,7 +87,7 @@
(defun lean-option-read-uint (prompt)
(let* ((str (read-string prompt))
(val (string-to-int str))
(val (string-to-number str))
tmp-str)
(setq tmp-str (int-to-string val))
(if (and (integerp val)