mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-20 14:19:18 +02:00
Removing reference to digit-value.
This commit is contained in:
parent
9b6c954891
commit
60690e303c
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@
|
|||
(let ((c (peek-char in)))
|
||||
(cond
|
||||
((char-numeric? c)
|
||||
(lp (+ res (* (digit-value (read-char in)) k)) (* k 0.1)))
|
||||
(lp (+ res (* (- (char->integer (read-char in)) (char->integer #\0)) k)) (* k 0.1)))
|
||||
((or (eof-object? c) (memv c delimiters)) res)
|
||||
(else (error "invalid char in float syntax" c))))))
|
||||
(define (read-name c in)
|
||||
|
|
Loading…
Add table
Reference in a new issue