summaryrefslogtreecommitdiffstats
path: root/mpi/mpi-types.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-01-17 01:42:29 -0800
committerKaz Kylheku <kaz@kylheku.com>2019-01-17 01:42:29 -0800
commitdfafb4879c1e65657ad89232e57f60c7a07f8c66 (patch)
tree4e107acd046cb5f835fa38b54e1c8fb24cdd8c50 /mpi/mpi-types.h
parent50a7e813d251a91ae027b3edfbb1d25b24b9de48 (diff)
downloadtxr-dfafb4879c1e65657ad89232e57f60c7a07f8c66.tar.gz
txr-dfafb4879c1e65657ad89232e57f60c7a07f8c66.tar.bz2
txr-dfafb4879c1e65657ad89232e57f60c7a07f8c66.zip
carray: fix vec/list conversion bug.
If a zero-length carray is converted with vec-carray or list-carray and the null-term-p argument is t, there is an exception about a negative index. An empty vector or list should be returned in this case, and the documentation says exactly that. Also, if a carray of unknown length is converted, there is an exception from vec-carray, as documented, but it's an uninformative one that is incidentally produced when -1 is passed to the vec function. The list-carray just returns nil, contravening the documentation. * ffi.c (vec_carray, list_carray): Fix the problems described above. * txr.1: Reviewing the documentation for these functions, an improperly terminated sentence was found.
Diffstat (limited to 'mpi/mpi-types.h')
0 files changed, 0 insertions, 0 deletions