summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixInit.c
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2007-11-09 23:04:07 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2007-11-09 23:04:07 (GMT)
commite4ed773766761c658f778f4ea4285266a2870f56 (patch)
tree5469dc388ae7434cef5e6571b085d68ecd7af168 /unix/tclUnixInit.c
parentb4735e76da5d332e785a396168efb7230a88d8fe (diff)
downloadtcl-e4ed773766761c658f778f4ea4285266a2870f56.zip
tcl-e4ed773766761c658f778f4ea4285266a2870f56.tar.gz
tcl-e4ed773766761c658f778f4ea4285266a2870f56.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.c6
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