fix bug in string array implementation type mask
authorAndy Wingo <wingo@pobox.com>
Tue, 29 Dec 2009 11:35:13 +0000 (12:35 +0100)
committerAndy Wingo <wingo@pobox.com>
Tue, 29 Dec 2009 12:29:02 +0000 (13:29 +0100)
commitc5f171027d9b237630a71dc43d4b1b3dc391c591
tree9724129d2456c288271eac7df2624289faf62ff3
parenta1dcb961a6d819c154cfa5767ce4193f31cf29b3
fix bug in string array implementation type mask

* libguile/strings.c (SCM_ARRAY_IMPLEMENTATION): The mask for the string
  array implementation should be 0x7f, without masking out 0x2.
  Otherwise numbers were being thought to be vectors!

* test-suite/tests/unif.test: Add test.

* libguile/vectors.c (SCM_ARRAY_IMPLEMENTATION): Only register one
  implementation, because weak vectors can be checked with the mask &
  ~2, and the functions are the same.
libguile/strings.c
libguile/vectors.c
test-suite/tests/unif.test