Fix empty array bug in array-index-map!
authorDaniel Llorens <daniel.llorens@bluewin.ch>
Fri, 19 Apr 2013 08:42:40 +0000 (10:42 +0200)
committerAndy Wingo <wingo@pobox.com>
Sun, 9 Feb 2014 11:48:19 +0000 (12:48 +0100)
commitb0d9b0744a6bfadbf172a90ed3b5b788555ca11d
tree6a83cdc6884f8b5317dc68575ef4f536abda380b
parenta0ef1252af3204e9d86087c5752f48790575d372
Fix empty array bug in array-index-map!

* libguile/array-map.c: (scm_array_index_map_x): bail out if any one of the
  axes is empty.
* test-suite/tests/ramap.test: add tests for empty array-case of
  array-index-map!. The 'f64 case with not-last emtpy axis is broken in 2.0.9.
libguile/array-map.c
test-suite/tests/ramap.test