Skip to content

Commit

Permalink
Weaken write-u8vector contract
Browse files Browse the repository at this point in the history
  • Loading branch information
drewc committed Oct 16, 2024
1 parent 64b7741 commit e80ef4f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/gerbil/runtime/util.ss
Original file line number Diff line number Diff line change
Expand Up @@ -755,11 +755,8 @@ namespace: #f

(def (write-u8vector (bytes : :u8vector)
(port :~ output-port? :- :port)
(start :~ (in-range? 0 (max 1 (u8vector-length bytes)))
:- :fixnum
:= 0)
(end :~ (in-range-inclusive? start (u8vector-length bytes))
:- :fixnum
(start :- :fixnum := 0)
(end :~ (in-range-inclusive? start (u8vector-length bytes)) :- :fixnum
:= (u8vector-length bytes)))
=> :void
(:- (##write-subu8vector bytes start end port)
Expand Down

0 comments on commit e80ef4f

Please sign in to comment.