summaryrefslogtreecommitdiffstats
path: root/generic/tclBinary.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-09-25 18:24:52 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-09-25 18:24:52 (GMT)
commit69efa801a21b9488aff642c3bbf2d9c79be41dc7 (patch)
treefe74e16243bb94f3e5f7a1f461e60e3cb107ff2b /generic/tclBinary.c
parent31f30b5b76b8119976e9b2fbf14f906cc1f93dbf (diff)
downloadtcl-69efa801a21b9488aff642c3bbf2d9c79be41dc7.zip
tcl-69efa801a21b9488aff642c3bbf2d9c79be41dc7.tar.gz
tcl-69efa801a21b9488aff642c3bbf2d9c79be41dc7.tar.bz2
Make last argument of Tcl_GetByteArrayFromObj() "Tcl_Size *" in stead of "int". Is exactly the same in 8.7, and reduces confusion in 9.0. See [1468052732]
Diffstat (limited to 'generic/tclBinary.c')
-rw-r--r--generic/tclBinary.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/generic/tclBinary.c b/generic/tclBinary.c
index b6394a4..9c47dd4 100644
--- a/generic/tclBinary.c
+++ b/generic/tclBinary.c
@@ -471,11 +471,10 @@ Tcl_GetBytesFromObj(
*----------------------------------------------------------------------
*/
-#undef Tcl_GetByteArrayFromObj
unsigned char *
Tcl_GetByteArrayFromObj(
Tcl_Obj *objPtr, /* The ByteArray object. */
- int *numBytesPtr) /* If non-NULL, write the number of bytes
+ Tcl_Size *numBytesPtr) /* If non-NULL, write the number of bytes
* in the array here */
{
ByteArray *baPtr;