[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make-uniform-vector bit vector versus array-set!

From: Marius Vollmer
Subject: Re: make-uniform-vector bit vector versus array-set!
Date: Sun, 26 Feb 2006 12:00:50 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Kevin Ryde <address@hidden> writes:

> I don't understand all that stuff, but I got some joy from this
> change.  Can someone (Marius?) confirm or deny?
>         * unif.c (bitvector_set): Should be h->writable_elements not
>         h->elements, the latter results in a segv in array-set! on a bit
>         vector.

This is the right fix.  Thanks!

Readers like bitvector_ref should use h->elements, and setters like
bitvector_set should use h->writable_elements.  Those two pointers are
set up by memoize_ref and memoize_set, respectively.

GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405

reply via email to

[Prev in Thread] Current Thread [Next in Thread]