diff options
author | Keith Bostic <keith.bostic@mongodb.com> | 2017-06-01 21:59:07 -0400 |
---|---|---|
committer | Michael Cahill <michael.cahill@mongodb.com> | 2017-06-02 11:59:07 +1000 |
commit | b3ff7c4ab91d3c5fda64381d8ab5957cb697167d (patch) | |
tree | 2cd71bfbf374aa8a58f559f972586cad98a92928 /src/support | |
parent | 1216c4286d1834c5219b651cfd9f4b82d14f45dd (diff) | |
download | mongo-b3ff7c4ab91d3c5fda64381d8ab5957cb697167d.tar.gz |
WT-3348 Lint, Windows warnings. (#3449)
* Simplify Windows include files, clean up Windows warnings.
* Remove incorrect path from copyright skip list.
* Clean up a set of places where an operation could potentially truncate a value by performing the operation at the larger size and then casting the result.
Diffstat (limited to 'src/support')
-rw-r--r-- | src/support/huffman.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/support/huffman.c b/src/support/huffman.c index 83d1e790ce7..17342c53ced 100644 --- a/src/support/huffman.c +++ b/src/support/huffman.c @@ -483,7 +483,7 @@ __wt_huffman_open(WT_SESSION_IMPL *session, set_codes(node, huffman->codes, 0, 0); WT_ERR(__wt_calloc_def( - session, 1U << huffman->max_depth, &huffman->code2symbol)); + session, (size_t)1U << huffman->max_depth, &huffman->code2symbol)); make_table(session, huffman->code2symbol, huffman->max_depth, huffman->codes, huffman->numSymbols); |