projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b8a79c
)
Accept string designators in STRING=.
author
Olof-Joachim Frahm
<olof@macrolet.net>
Fri, 17 May 2013 22:40:43 +0000
(
00:40
+0200)
committer
Olof-Joachim Frahm
<olof@macrolet.net>
Fri, 17 May 2013 22:40:43 +0000
(
00:40
+0200)
src/string.lisp
patch
|
blob
|
history
diff --git
a/src/string.lisp
b/src/string.lisp
index
56c4776
..
8bead9b
100644
(file)
--- a/
src/string.lisp
+++ b/
src/string.lisp
@@
-19,7
+19,9
@@
(t (char-to-string x))))
(defun string= (s1 s2)
- (let ((n (length s1)))
+ (let* ((s1 (string s1))
+ (s2 (string s2))
+ (n (length s1)))
(when (= (length s2) n)
(dotimes (i n t)
(unless (char= (char s1 i) (char s2 i))