Fix shrinking of contiguous bytevectors, as from 'get-bytevector-n'.
authorLudovic Courtès <ludo@gnu.org>
Wed, 28 May 2014 17:26:45 +0000 (19:26 +0200)
committerLudovic Courtès <ludo@gnu.org>
Wed, 28 May 2014 17:26:45 +0000 (19:26 +0200)
commit1baa2159307c34683e8ede54f38f65010fc594b0
tree287dcbe272cc36a7353a7142553708337f3e605f
parent0bb3f946e97424616c1a95f2372e5bc41e8f8174
Fix shrinking of contiguous bytevectors, as from 'get-bytevector-n'.

Fixes <http://bugs.gnu.org/17466>.
Reported by J Kalbhenn <jkal@posteo.eu>.

* libguile/bytevectors.c (scm_c_shrink_bytevector): When BV is
  contiguous, add use of 'SCM_BYTEVECTOR_SET_CONTENTS'.
libguile/bytevectors.c