summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixThrd.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-05-23 16:03:29 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-05-23 16:03:29 (GMT)
commit2acd355f8dc8e75b3a63b7b1dc079ebccb3a2701 (patch)
tree7410995c34f762f6c920204b067e5ef2b4ea268b /unix/tclUnixThrd.c
parentf3f254e8bab8854467fda3c5a2c48a640fb7687c (diff)
downloadtcl-2acd355f8dc8e75b3a63b7b1dc079ebccb3a2701.zip
tcl-2acd355f8dc8e75b3a63b7b1dc079ebccb3a2701.tar.gz
tcl-2acd355f8dc8e75b3a63b7b1dc079ebccb3a2701.tar.bz2
Give Tcl_CreateThread a TCL_HASH_TYPE (unsigned) stackSize parameter
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 0c32b0d..c67495e 100644
--- a/unix/tclUnixThrd.c
+++ b/unix/tclUnixThrd.c
@@ -222,7 +222,7 @@ TclpThreadCreate(
Tcl_ThreadId *idPtr, /* Return, the ID of the thread */
Tcl_ThreadCreateProc *proc, /* Main() function of the thread */
ClientData clientData, /* The one argument to Main() */
- int 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. */
{
@@ -236,7 +236,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 {
/*
@@ -255,7 +255,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 */
}