summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixThrd.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-06-12 22:45:30 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-06-12 22:45:30 (GMT)
commit2e58eced0d47543779be15e4c9bcdd80b4cc4055 (patch)
tree4b5b7e3154f9bddf8b0192b791ee9c6444624948 /unix/tclUnixThrd.c
parentfc3837a30a391bbab01d37b92e2d77b88274e1e2 (diff)
parentd07e50e54a59bd0355c5fa01c44ef95b1677835c (diff)
downloadtcl-2e58eced0d47543779be15e4c9bcdd80b4cc4055.zip
tcl-2e58eced0d47543779be15e4c9bcdd80b4cc4055.tar.gz
tcl-2e58eced0d47543779be15e4c9bcdd80b4cc4055.tar.bz2
Merge 9.0
Diffstat (limited to 'unix/tclUnixThrd.c')
-rw-r--r--unix/tclUnixThrd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/unix/tclUnixThrd.c b/unix/tclUnixThrd.c
index cf3b7a1..5d357c9 100644
--- a/unix/tclUnixThrd.c
+++ b/unix/tclUnixThrd.c
@@ -214,7 +214,7 @@ TclpThreadCreate(
Tcl_ThreadId *idPtr, /* Return, the ID of the thread */
Tcl_ThreadCreateProc *proc, /* Main() function of the thread */
void *clientData, /* The one argument to Main() */
- size_t stackSize, /* Size of stack for the new thread */
+ TCL_HASH_TYPE stackSize, /* Size of stack for the new thread */
int flags) /* Flags controlling behaviour of the new
* thread. */
{
@@ -228,7 +228,7 @@ TclpThreadCreate(
#ifdef HAVE_PTHREAD_ATTR_SETSTACKSIZE
if (stackSize != TCL_THREAD_STACK_DEFAULT) {
- pthread_attr_setstacksize(&attr, stackSize);
+ pthread_attr_setstacksize(&attr, (size_t)stackSize);
#ifdef TCL_THREAD_STACK_MIN
} else {
/*
@@ -247,7 +247,7 @@ TclpThreadCreate(
result = pthread_attr_getstacksize(&attr, &size);
if (!result && (size < TCL_THREAD_STACK_MIN)) {
- pthread_attr_setstacksize(&attr, (size_t) TCL_THREAD_STACK_MIN);
+ pthread_attr_setstacksize(&attr, (size_t)TCL_THREAD_STACK_MIN);
}
#endif /* TCL_THREAD_STACK_MIN */
}