Fix bytevector-copy when applied to SRFI-4 homogeneous numeric vectors.
authorMark H Weaver <mhw@netris.org>
Wed, 12 Nov 2014 04:14:26 +0000 (23:14 -0500)
committerMark H Weaver <mhw@netris.org>
Wed, 12 Nov 2014 04:32:57 +0000 (23:32 -0500)
commit10679f4c59fcffb0657219e28e38d15df8ad09a0
treea5bd8cb3f83597e3dc02eda4c3beea96e18c58e8
parent03242f398f3520b1b27caf5885c8d5600094f944
Fix bytevector-copy when applied to SRFI-4 homogeneous numeric vectors.

Fixes <http://bugs.gnu.org/18866>.
Reported by tantalum <sph@posteo.eu>.

* libguile/bytevectors.c (scm_bytevector_copy): Always create a VU8
  bytevector.

* test-suite/tests/bytevectors.test: Add test.
libguile/bytevectors.c
test-suite/tests/bytevectors.test