summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.c
diff options
context:
space:
mode:
authordas <das>2007-11-11 06:32:29 (GMT)
committerdas <das>2007-11-11 06:32:29 (GMT)
commit0c70cd47933dd963f50377ed620f78ec741279a2 (patch)
treed04f73549e04e897ba2d591c21d5694297c9a993 /generic/tclBasic.c
parentf78cde82f8d5f7c77db75ae891fe3a4ff5611fef (diff)
downloadtcl-0c70cd47933dd963f50377ed620f78ec741279a2.zip
tcl-0c70cd47933dd963f50377ed620f78ec741279a2.tar.gz
tcl-0c70cd47933dd963f50377ed620f78ec741279a2.tar.bz2
* generic/tclBasic.c: fix stack check failure case if stack grows up.
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r--generic/tclBasic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index b44e3d3..b30a155 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.c
@@ -14,7 +14,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclBasic.c,v 1.277 2007/11/11 05:23:39 das Exp $
+ * RCS: @(#) $Id: tclBasic.c,v 1.278 2007/11/11 06:32:29 das Exp $
*/
#include "tclInt.h"
@@ -353,7 +353,7 @@ static int stackGrowsDown = 1;
TclpGetCStackParams(&((iPtr)->stackBound))
#ifdef TCL_STACK_GROWS_UP
#define CheckCStack(iPtr, localIntPtr) \
- ((iPtr)->stackBound && (localIntPtr) < (iPtr)->stackBound)
+ (!(iPtr)->stackBound || (localIntPtr) < (iPtr)->stackBound)
#else /* TCL_STACK_GROWS_UP */
#define CheckCStack(iPtr, localIntPtr) \
((localIntPtr) > (iPtr)->stackBound)