[PATCH] Allow scm_XXX_writable_elements on empty vectors, even if immutable

2017-09-15 Thread daniel . llorens
From: Daniel Llorens * 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

Re: [PATCH] Allow scm_XXX_writable_elements on empty vectors, even if immutable

2017-09-15 Thread Daniel Llorens
Please ignore this patch, I saw it produces an error elsewhere. I'm sending an updated patch. Regards Daniel

[PATCH] Allow scm_XXX_writable_elements on empty vectors, even if immutable

2017-09-15 Thread daniel . llorens
From: Daniel Llorens * libguile/array-handle.c (initialize_vector_handle): Set both element pointers to NULL if the vector is empty. * test-suite/tests/sort.test: Check empty/mutable/immutable vectors with sort!. --- libguile/array-handle.c| 6 --