summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorhypnotoad <yoda@etoyoc.com>2018-06-12 19:32:03 (GMT)
committerhypnotoad <yoda@etoyoc.com>2018-06-12 19:32:03 (GMT)
commitd62033b7e21f33603528c9712d11732f1fc756f7 (patch)
tree724f57be810a2810f1c3d6010fda334f52a384e0 /generic
parent1b3a0a73ae314d9cade49bd422025fb4d16c0cc9 (diff)
downloadtcl-d62033b7e21f33603528c9712d11732f1fc756f7.zip
tcl-d62033b7e21f33603528c9712d11732f1fc756f7.tar.gz
tcl-d62033b7e21f33603528c9712d11732f1fc756f7.tar.bz2
Adding typecasts in tclZipfs.c to eliminate a compiler warning
Diffstat (limited to 'generic')
-rw-r--r--generic/tclZipfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclZipfs.c b/generic/tclZipfs.c
index 1df6694..b6c8a00 100644
--- a/generic/tclZipfs.c
+++ b/generic/tclZipfs.c
@@ -2381,7 +2381,7 @@ ZipFSMkZipOrImgObjCmd(ClientData clientData, Tcl_Interp *interp,
Unlock();
}
} else {
- int k, n, m;
+ int k, m, n;
Tcl_Channel in;
const char *errMsg = "seek error";
@@ -2414,8 +2414,8 @@ cperr:
k = 0;
while (k < i) {
m = i - k;
- if (m > sizeof (buf)) {
- m = sizeof (buf);
+ if (m > (int)sizeof (buf)) {
+ m = (int)sizeof (buf);
}
n = Tcl_Read(in, buf, m);
if (n == -1) {