(print_object): Fix off-by-one in last change.
authorAndreas Schwab <schwab@suse.de>
Sat, 26 Jul 2008 06:49:19 +0000 (06:49 +0000)
committerAndreas Schwab <schwab@suse.de>
Sat, 26 Jul 2008 06:49:19 +0000 (06:49 +0000)
src/ChangeLog
src/print.c

index 3e59202..517984d 100644 (file)
@@ -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,
index dc4c40a..b9d2e12 100644 (file)
@@ -1561,7 +1561,7 @@ print_object (obj, printcharfun, escapeflag)
   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.  */