diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2007-11-09 23:04:07 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2007-11-09 23:04:07 (GMT) |
commit | 58cd478524f9331ea3546c4e583a78b2342812f0 (patch) | |
tree | 5469dc388ae7434cef5e6571b085d68ecd7af168 /unix/tclUnixInit.c | |
parent | f7fc9d947a56ce385a0c841d211d9354bc60a394 (diff) | |
download | tcl-58cd478524f9331ea3546c4e583a78b2342812f0.zip tcl-58cd478524f9331ea3546c4e583a78b2342812f0.tar.gz tcl-58cd478524f9331ea3546c4e583a78b2342812f0.tar.bz2 |
fixed stupid bug in last commit that made it not work in threaded builds
Diffstat (limited to 'unix/tclUnixInit.c')
-rw-r--r-- | unix/tclUnixInit.c | 6 |
1 files 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 |