projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ed43a9
)
!parse-integer: handle leading whitespace
author
Alfredo Beaumont
<alfredo.beaumont@gmail.com>
Wed, 24 Apr 2013 14:41:25 +0000
(16:41 +0200)
committer
Alfredo Beaumont
<alfredo.beaumont@gmail.com>
Wed, 24 Apr 2013 14:41:45 +0000
(16:41 +0200)
ecmalisp.lisp
patch
|
blob
|
history
diff --git
a/ecmalisp.lisp
b/ecmalisp.lisp
index
cd93750
..
f70407f
100644
(file)
--- a/
ecmalisp.lisp
+++ b/
ecmalisp.lisp
@@
-1135,7
+1135,11
@@
(index 0)
(size (length string))
(sign 1))
- (when (zerop size) (return (values nil 0)))
+ ;; Leading whitespace
+ (while (and (< index size)
+ (whitespacep (char string index)))
+ (incf index))
+ (unless (< index size) (return (values nil 0)))
;; Optional sign
(case (char string 0)
(#\+ (incf index))