emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] 125/255: removed dependency on `parse-integer'


From: Eric Schulte
Subject: [elpa] 125/255: removed dependency on `parse-integer'
Date: Sun, 16 Mar 2014 01:02:32 +0000

eschulte pushed a commit to branch go
in repository elpa.

commit f671b6e77b713fd514bf5ab578552509e1803ef7
Author: Eric Schulte <address@hidden>
Date:   Mon May 28 11:38:33 2012 -0600

    removed dependency on `parse-integer'
---
 back-ends/gtp.el |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/back-ends/gtp.el b/back-ends/gtp.el
index c7e0ee7..1161b5f 100644
--- a/back-ends/gtp.el
+++ b/back-ends/gtp.el
@@ -63,7 +63,7 @@
 
 (defun gtp-to-pos (color gtp)
   (cons color (cons :pos (cons (gtp-char-to-num (aref gtp 0))
-                               (1- (parse-integer (substring gtp 1)))))))
+                               (1- (read (substring gtp 1)))))))
 
 (defun go-to-gtp-command (element)
   "Convert an go ELEMENT to a gtp command."
@@ -84,7 +84,7 @@
   "Send gtp COMMAND to OBJECT and return any output.")
 
 (defmethod go-size ((gtp gtp))
-  (parse-integer (gtp-command gtp "query_boardsize")))
+  (read (gtp-command gtp "query_boardsize")))
 
 (defmethod set-go-size ((gtp gtp) size)
   (gtp-command gtp (format "boardsize %d" size)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]