From 0c70cd47933dd963f50377ed620f78ec741279a2 Mon Sep 17 00:00:00 2001 From: das Date: Sun, 11 Nov 2007 06:32:29 +0000 Subject: * generic/tclBasic.c: fix stack check failure case if stack grows up. --- generic/tclBasic.c | 4 ++-- 1 file 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) -- cgit v0.12