summaryrefslogtreecommitdiffstats
path: root/generic/tclBinary.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-12-12 18:13:10 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-12-12 18:13:10 (GMT)
commit3382fb9c2862df997fa60e6f701d386feb6cf99e (patch)
treed02bc675d5b8af3491d8eae60fb0ae968b600346 /generic/tclBinary.c
parent296a0b3d601c39b60f37bf2d6d22958b77a67213 (diff)
parentf1752f51c91fe99938a7cc83ea61e37feeea9209 (diff)
downloadtcl-3382fb9c2862df997fa60e6f701d386feb6cf99e.zip
tcl-3382fb9c2862df997fa60e6f701d386feb6cf99e.tar.gz
tcl-3382fb9c2862df997fa60e6f701d386feb6cf99e.tar.bz2
Merge 8.7
Diffstat (limited to 'generic/tclBinary.c')
-rw-r--r--generic/tclBinary.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclBinary.c b/generic/tclBinary.c
index 2578657..c93494e 100644
--- a/generic/tclBinary.c
+++ b/generic/tclBinary.c
@@ -1818,7 +1818,7 @@ GetFormatSpec(
(*formatPtr)++;
*countPtr = BINARY_ALL;
} else if (isdigit(UCHAR(**formatPtr))) { /* INTL: digit */
- unsigned long int count;
+ unsigned long count;
errno = 0;
count = strtoul(*formatPtr, (char **) formatPtr, 10);
@@ -2783,7 +2783,8 @@ BinaryEncodeUu(
{
Tcl_Obj *resultObj;
unsigned char *data, *start, *cursor;
- int rawLength, n, i, bits, index;
+ int rawLength, i, bits, index;
+ unsigned int n;
int lineLength = 61;
const unsigned char SingleNewline[] = { UCHAR('\n') };
const unsigned char *wrapchar = SingleNewline;