changeset 97032:7f9c12782805

(print_object): Fix off-by-one in last change.
author Andreas Schwab <schwab@suse.de>
date Sat, 26 Jul 2008 06:49:19 +0000
parents 66b4997106ce
children 51b8e9670c45
files src/ChangeLog src/print.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sat Jul 26 03:40:06 2008 +0000
+++ b/src/ChangeLog	Sat Jul 26 06:49:19 2008 +0000
@@ -1,3 +1,7 @@
+2008-07-26  Andreas Schwab  <schwab@suse.de>
+
+	* print.c (print_object): Fix off-by-one in last change.
+
 2008-07-25  Juanma Barranquero  <lekktu@gmail.com>
 
 	* term.c (syms_of_term): Don't initialize default_orig_pair,
--- a/src/print.c	Sat Jul 26 03:40:06 2008 +0000
+++ b/src/print.c	Sat Jul 26 06:49:19 2008 +0000
@@ -1561,7 +1561,7 @@
   QUIT;
 
   /* See similar code in print_preprocess.  */
-  if (print_depth > PRINT_CIRCLE)
+  if (print_depth >= PRINT_CIRCLE)
     error ("Apparently circular structure being printed");
 
   /* Detect circularities and truncate them.  */