Christophe
Weblog
Wiki
Code
Publications
Music
projects
/
squeeze-el.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
698e6e9
)
use string-to-number rather than parse-integer
author
Christophe Rhodes
<csr21@cantab.net>
Tue, 8 Apr 2014 21:03:53 +0000
(22:03 +0100)
committer
Christophe Rhodes
<csr21@cantab.net>
Tue, 8 Apr 2014 21:03:53 +0000
(22:03 +0100)
squeeze.el
patch
|
blob
|
history
diff --git
a/squeeze.el
b/squeeze.el
index c4a229ad0249a345a0691b2e4914c03e504e36b9..e79a581cec29cc04524c7ed835e18d92f7c0ad4b 100644
(file)
--- a/
squeeze.el
+++ b/
squeeze.el
@@
-356,7
+356,7
@@
(startpos (match-end 0)))
(unless countpos
(message "no count found in players line"))
(startpos (match-end 0)))
(unless countpos
(message "no count found in players line"))
- (let ((count (
parse-integer string (match-beginning 1) (match-end 1
)))
+ (let ((count (
string-to-number (substring string (match-beginning 1) (match-end 1)
)))
result endpos)
(dotimes (i (1- count))
(setq endpos (progn (string-match " connected%3A[0-1] " string startpos)
result endpos)
(dotimes (i (1- count))
(setq endpos (progn (string-match " connected%3A[0-1] " string startpos)