From: Andreas Schwab Date: Sat, 26 Jul 2008 06:49:19 +0000 (+0000) Subject: (print_object): Fix off-by-one in last change. X-Git-Tag: emacs-pretest-23.0.90~3869 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=51dc79f87e7587f48acdd8d16ec41f2c6373edfb;p=emacs.git (print_object): Fix off-by-one in last change. --- diff --git a/src/ChangeLog b/src/ChangeLog index 3e592022db6..517984d25ef 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2008-07-26 Andreas Schwab + + * print.c (print_object): Fix off-by-one in last change. + 2008-07-25 Juanma Barranquero * term.c (syms_of_term): Don't initialize default_orig_pair, diff --git a/src/print.c b/src/print.c index dc4c40aabab..b9d2e12be15 100644 --- a/src/print.c +++ b/src/print.c @@ -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. */