From e4ed773766761c658f778f4ea4285266a2870f56 Mon Sep 17 00:00:00 2001 From: Miguel Sofer Date: Fri, 9 Nov 2007 23:04:07 +0000 Subject: fixed stupid bug in last commit that made it not work in threaded builds --- unix/tclUnixInit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unix/tclUnixInit.c b/unix/tclUnixInit.c index 6554a3f..b7df456 100644 --- a/unix/tclUnixInit.c +++ b/unix/tclUnixInit.c @@ -7,7 +7,7 @@ * Copyright (c) 1999 by Scriptics Corporation. * All rights reserved. * - * RCS: @(#) $Id: tclUnixInit.c,v 1.72 2007/11/09 21:35:19 msofer Exp $ + * RCS: @(#) $Id: tclUnixInit.c,v 1.73 2007/11/09 23:04:07 msofer Exp $ */ #include "tclInt.h" @@ -1129,9 +1129,9 @@ TclpGetCStackParams( } if (stackGrowsDown) { - *stackBoundPtr = tsdPtr->outerVarPtr - tsdPtr->stackSize; + *stackBoundPtr = (int *) ((char *)tsdPtr->outerVarPtr - tsdPtr->stackSize); } else { - *stackBoundPtr = tsdPtr->outerVarPtr + tsdPtr->stackSize; + *stackBoundPtr = (int *) ((char *)tsdPtr->outerVarPtr + tsdPtr->stackSize); } return stackGrowsDown; #endif -- cgit v0.12