diff options
author | Daniel Llorens <daniel.llorens@bluewin.ch> | 2017-09-15 12:36:57 +0200 |
---|---|---|
committer | Daniel Llorens <daniel.llorens@bluewin.ch> | 2017-10-31 13:23:17 +0100 |
commit | 4212f29655db2e9ddca19ebd590bca5521c1b97b (patch) | |
tree | 962aafd11f614e068cdae1da2c54f8fb626e82b4 /benchmark-suite | |
parent | 1008ea315483d1fb41b2a8c10680e511238836d0 (diff) | |
download | guile-4212f29655db2e9ddca19ebd590bca5521c1b97b.tar.gz |
Allow scm_XXX_writable_elements on empty vectors, even if immutable
* libguile/array-handle.c (initialize_vector_handle): Set both element
pointers to NULL if the vector is empty.
* libguile/array-map.c (racp): Ignore immutability if destination is
empty.
* test-suite/tests/sort.test: Check empty/mutable/immutable vectors with
sort!.
* test-suite/tests/array-map.test: Check array-copy! with
empty/immutable destination.
Diffstat (limited to 'benchmark-suite')
0 files changed, 0 insertions, 0 deletions