diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-03-13 20:44:29 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-03-13 20:44:29 (GMT) |
commit | 60670274b079f0aa0735bb70fb12c642d1b585ab (patch) | |
tree | d143a2884551f41e7277b1c38347651cb22a7a3b /generic/tclThreadAlloc.c | |
parent | 7e4d77967482128bb89b7cfa2a77cd57e58b2abd (diff) | |
download | tcl-60670274b079f0aa0735bb70fb12c642d1b585ab.zip tcl-60670274b079f0aa0735bb70fb12c642d1b585ab.tar.gz tcl-60670274b079f0aa0735bb70fb12c642d1b585ab.tar.bz2 |
Eliminate many (mostly harmless) MSVC warning messages. Tcl 9 compiles warning-free now on MSVC.
Diffstat (limited to 'generic/tclThreadAlloc.c')
-rw-r--r-- | generic/tclThreadAlloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclThreadAlloc.c b/generic/tclThreadAlloc.c index cd57d2e..cf275c8 100644 --- a/generic/tclThreadAlloc.c +++ b/generic/tclThreadAlloc.c @@ -1082,7 +1082,7 @@ TclInitThreadAlloc(void) objLockPtr = TclpNewAllocMutex(); for (i = 0; i < NBUCKETS; ++i) { bucketInfo[i].blockSize = MINALLOC << i; - bucketInfo[i].maxBlocks = 1 << (NBUCKETS - 1 - i); + bucketInfo[i].maxBlocks = ((size_t)1) << (NBUCKETS - 1 - i); bucketInfo[i].numMove = i < NBUCKETS - 1 ? 1 << (NBUCKETS - 2 - i) : 1; bucketInfo[i].lockPtr = TclpNewAllocMutex(); |