Skip to content
This repository has been archived by the owner on Sep 13, 2019. It is now read-only.

Commit

Permalink
in-bytes: use unsafe-bytes-ref
Browse files Browse the repository at this point in the history
In the same way that `in-vector` uses `unsafe-vector-ref`,
make `in-bytes` expand to a use of `unsafe-bytes-ref`.
  • Loading branch information
mflatt committed Jan 22, 2017
1 parent aead07b commit a9ae341
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions racket/collects/racket/private/for.rkt
Expand Up @@ -1000,7 +1000,7 @@
(make-in-vector-like 'in-string
"string"
#'string?
#'string-length
#'unsafe-string-length
#'in-string
#'string-ref))

Expand All @@ -1014,9 +1014,9 @@
(make-in-vector-like 'in-bytes
"bytes"
#'bytes?
#'bytes-length
#'unsafe-bytes-length
#'in-bytes
#'bytes-ref))
#'unsafe-bytes-ref))

(define-:vector-like-gen :flvector-gen unsafe-flvector-ref)
;; in-flvector is defined in racket/flonum
Expand Down

0 comments on commit a9ae341

Please sign in to comment.