Match types used in arrays.c to struct field types
authorDaniel Llorens <daniel.llorens@bluewin.ch>
Mon, 29 Apr 2013 12:19:52 +0000 (14:19 +0200)
committerAndy Wingo <wingo@pobox.com>
Mon, 10 Feb 2014 20:58:28 +0000 (21:58 +0100)
commit1e2a55e42a1181b1ec9e1ab2d3457458e05960de
tree40205bfd6011874e3f989cdd1b0dbf172df5202f
parentb7c8836b715f3dbbf89e3debb76dcf7b5c8d6ec1
Match types used in arrays.c to struct field types

* libguile/arrays.c
  - scm_shared_array_root: check for SCM_I_ARRAYP first.
  - scm_i_shap2ra:
    * check valid bounds in the '(lbnd ubnd) case. This makes
      (make-array 0 '(4 -3)) fail with a 'bad dimension' instead of
      with a 'wrong index' error.
    * use ssize_t for lbnd/ubnd/inc, not long.
  - scm_make_shared_array: use ssize_t for indices, not long.
  - scm_transpose_array: use size_t for ndim, not ulong.
  - scm_i_print_array: idem.
libguile/arrays.c