Skip to content

Commit fd1e24b

Browse files
committed
Minor optimization in the R6RS compact array implementation
1 parent 81903fc commit fd1e24b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

srfi/250/internal/r6rs-compact-arrays.scm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@
5959

6060
(define (compact-array-length sa)
6161
(assert (bytevector? sa))
62-
(- (/ (bytevector-length sa) (bytevector-u8-ref sa 0)) 1))
62+
(- (div (bytevector-length sa) (bytevector-u8-ref sa 0)) 1))

0 commit comments

Comments
 (0)