gdb/ChangeLog:
* guile/scm-type.c (tyscm_array_1): Add comment.
* python/py-type.c (typy_array_1): Add comment.
+2015-01-07 Joel Brobecker <brobecker@adacore.com>
+
+ * guile/scm-type.c (tyscm_array_1): Add comment.
+ * python/py-type.c (typy_array_1): Add comment.
+
2015-01-06 Joel Brobecker <brobecker@adacore.com>
* guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
n1 = 0;
}
- if (n2 < n1 - 1)
+ if (n2 < n1 - 1) /* Note: An empty array has n2 == n1 - 1. */
{
gdbscm_out_of_range_error (func_name, SCM_ARG3,
scm_cons (scm_from_long (n1),
n1 = 0;
}
- if (n2 < n1 - 1)
+ if (n2 < n1 - 1) /* Note: An empty array has n2 == n1 - 1. */
{
PyErr_SetString (PyExc_ValueError,
_("Array length must not be negative"));