fixed some bugs in the way 2htdp/images were marshalled and unmarshalled

This commit is contained in:
Robby Findler 2010-10-28 15:31:19 -05:00
parent 7ef1e8bd90
commit 6a414bd18a

View File

@ -345,6 +345,8 @@ has been moved out).
(let loop ([sexp sexp])
(cond
[(pair? sexp) (cons (loop (car sexp)) (loop (cdr sexp)))]
[(and (immutable? sexp) (hash? sexp))
(hash-copy sexp)]
[(vector? sexp)
(if (= (vector-length sexp) 0)
(k #f)
@ -1019,7 +1021,7 @@ the mask bitmap and the original bitmap are all together in a single bytes!
(update 1)
(update 2)
;; don't save the cache
(vector-set! v 6 #f)
(vector-set! v 6 (make-hash))
(recur v port)))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;