summaryrefslogtreecommitdiffstats
path: root/generic/tclStringObj.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclStringObj.c')
-rw-r--r--generic/tclStringObj.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclStringObj.c b/generic/tclStringObj.c
index 010d822..d3a17d1 100644
--- a/generic/tclStringObj.c
+++ b/generic/tclStringObj.c
@@ -988,7 +988,7 @@ unsigned short *
TclGetUnicodeFromObj(
Tcl_Obj *objPtr, /* The object to find the unicode string
* for. */
- ptrdiff_t *lengthPtr) /* If non-NULL, the location where the string
+ void *lengthPtr) /* If non-NULL, the location where the string
* rep's unichar length should be stored. If
* NULL, no length is stored. */
{
@@ -1002,7 +1002,7 @@ TclGetUnicodeFromObj(
stringPtr = GET_STRING(objPtr);
if (lengthPtr != NULL) {
- *lengthPtr = stringPtr->numChars;
+ *(ptrdiff_t *)lengthPtr = stringPtr->numChars;
}
return stringPtr->unicode;
}