diff options
author | Joel Brobecker <brobecker@adacore.com> | 2015-01-07 07:34:29 +0400 |
---|---|---|
committer | Joel Brobecker <brobecker@adacore.com> | 2015-01-07 07:36:20 +0400 |
commit | e810d75b1c9bef779b29df9d2c609fd5891d5917 (patch) | |
tree | ee4906cee5fe1d7805d8ddfab6f61da5429399d7 /gdb/guile | |
parent | 6f25f22356dcf9ddf6b375c8e967486f10855dfd (diff) | |
download | gdb-e810d75b1c9bef779b29df9d2c609fd5891d5917.zip gdb-e810d75b1c9bef779b29df9d2c609fd5891d5917.tar.gz gdb-e810d75b1c9bef779b29df9d2c609fd5891d5917.tar.bz2 |
[python,guile] Add comment beside conditions testing empty arrays.
gdb/ChangeLog:
* guile/scm-type.c (tyscm_array_1): Add comment.
* python/py-type.c (typy_array_1): Add comment.
Diffstat (limited to 'gdb/guile')
-rw-r--r-- | gdb/guile/scm-type.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/guile/scm-type.c b/gdb/guile/scm-type.c index 4f46139..196b4a1 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 - 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), |