(srfi : 43 vectors) - vector-reverse-copy! incorrect when source=target and tstart=sstart
Bug #595513 reported by
Peter Lane
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Scheme Libraries |
Fix Committed
|
High
|
Unassigned |
Bug Description
Small inconsistency with SRFI document:
> (import (srfi :43))
> (define b (vector 1 2 3 4))
> (vector-
> b
#(4 3 3 4)
SRFI documentation says start=target & tstart=sstart means behaviour should be same as vector-reverse!
racket and sisc return #(4 3 2 1) for above example.
Suggest fix in 'vector-lib.scm'
add "((and (eq? target source) (= sstart tstart)) (vector-reverse! target tstart send))"
as first clause of 'cond' in 'vector-
Changed in scheme-libraries: | |
importance: | Undecided → High |
assignee: | nobody → Derick Eddington (derick-eddington) |
Changed in scheme-libraries: | |
assignee: | Derick Eddington (derick-eddington) → nobody |
Changed in scheme-libraries: | |
status: | New → Fix Committed |
description: | updated |
To post a comment you must log in.
FWIW, this SRFI collection still lives, here: https:/ /github. com/arcfide/ chez-srfi