diff options
author | hypnotoad <yoda@etoyoc.com> | 2018-06-12 19:32:03 (GMT) |
---|---|---|
committer | hypnotoad <yoda@etoyoc.com> | 2018-06-12 19:32:03 (GMT) |
commit | d62033b7e21f33603528c9712d11732f1fc756f7 (patch) | |
tree | 724f57be810a2810f1c3d6010fda334f52a384e0 /generic | |
parent | 1b3a0a73ae314d9cade49bd422025fb4d16c0cc9 (diff) | |
download | tcl-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.c | 6 |
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) { |