diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a6211bf3fa..8e3737dfc4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2015-01-06 Joel Brobecker + + * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range + error if N2 is equal to N1 - 1. + 2015-01-06 Joel Brobecker * python/py-type.c (typy_array_1): Do not raise negative-length diff --git a/gdb/guile/scm-type.c b/gdb/guile/scm-type.c index 92d5328c44..4f46139241 100644 --- a/gdb/guile/scm-type.c +++ b/gdb/guile/scm-type.c @@ -713,7 +713,7 @@ tyscm_array_1 (SCM self, SCM n1_scm, SCM n2_scm, int is_vector, n1 = 0; } - if (n2 < n1) + if (n2 < n1 - 1) { gdbscm_out_of_range_error (func_name, SCM_ARG3, scm_cons (scm_from_long (n1),