summaryrefslogtreecommitdiff
path: root/lisp/play/gametree.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/play/gametree.el')
-rw-r--r--lisp/play/gametree.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/play/gametree.el b/lisp/play/gametree.el
index f79ded4955e..abab58d6018 100644
--- a/lisp/play/gametree.el
+++ b/lisp/play/gametree.el
@@ -204,12 +204,12 @@ should be no leading white space."
gametree-half-ply-regexp "\\)"))
(limit (save-excursion (beginning-of-line 1) (point))))
(if (looking-at boundary)
- (+ (* 2 (string-to-int (match-string 1)))
+ (+ (* 2 (string-to-number (match-string 1)))
(if (string-match gametree-half-ply-regexp (match-string 2)) 1 0))
(save-excursion
(re-search-backward boundary limit)
(skip-chars-backward "0123456789")
- (1+ (* 2 (string-to-int
+ (1+ (* 2 (string-to-number
(buffer-substring (point) (match-end 1))))))))))
(defun gametree-current-branch-ply ()
@@ -345,7 +345,7 @@ This value is simply the outline heading level of the current line."
"Return score of current variation according to its score tag.
When no score tag is present, use the value of `gametree-default-score'."
(if (looking-at gametree-score-regexp)
- (string-to-int (match-string 3))
+ (string-to-number (match-string 3))
gametree-default-score))
(defun gametree-compute-reduced-score ()