fixed a missing put-mark call in fasl-read.
This commit is contained in:
parent
f45a74c115
commit
405c7dc9e2
|
@ -284,21 +284,27 @@
|
||||||
(or (vector-ref marks m)
|
(or (vector-ref marks m)
|
||||||
(error who "uninitialized mark" m)))]
|
(error who "uninitialized mark" m)))]
|
||||||
[(#\l) ;;; list of length <= 255
|
[(#\l) ;;; list of length <= 255
|
||||||
(let ([n (read-u8 p)])
|
(let ([ls
|
||||||
(let f ([n n])
|
(let ([n (read-u8 p)])
|
||||||
(cond
|
(let f ([n n])
|
||||||
[(< n 0) (read)]
|
(cond
|
||||||
[else
|
[(< n 0) (read)]
|
||||||
(let ([x (read)])
|
[else
|
||||||
(cons x (f (- n 1))))])))]
|
(let ([x (read)])
|
||||||
|
(cons x (f (- n 1))))])))])
|
||||||
|
(when m (put-mark m ls))
|
||||||
|
ls)]
|
||||||
[(#\L) ;;; list of length > 255
|
[(#\L) ;;; list of length > 255
|
||||||
(let ([n (read-int p)])
|
(let ([ls
|
||||||
(let f ([n n])
|
(let ([n (read-int p)])
|
||||||
(cond
|
(let f ([n n])
|
||||||
[(< n 0) (read)]
|
(cond
|
||||||
[else
|
[(< n 0) (read)]
|
||||||
(let ([x (read)])
|
[else
|
||||||
(cons x (f (- n 1))))])))]
|
(let ([x (read)])
|
||||||
|
(cons x (f (- n 1))))])))])
|
||||||
|
(when m (put-mark m ls))
|
||||||
|
ls)]
|
||||||
[else
|
[else
|
||||||
(die who "Unexpected char as a fasl object header" h)])))
|
(die who "Unexpected char as a fasl object header" h)])))
|
||||||
(read))
|
(read))
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
1397
|
1398
|
||||||
|
|
Loading…
Reference in New Issue