From 5db541304f237bd133aad1f8b58ac35a58e42253 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Mon, 5 Mar 2012 09:56:12 +0000 Subject: Switch to a C-style cast here to silence a brain-dead MSVC warning. It complains about the truncation of a 64-bit constant to a 32-bit value when size_t is 32-bits wide, but *only with static_cast*!!! The exact signal that should *silence* such a warning, and in fact does silence it with both GCC and Clang. Anyways, this was causing grief for all the MSVC builds, so pointless change made. Thanks to Nikola on IRC for confirming that this works. llvm-svn: 152021 --- llvm/include/llvm/ADT/Hashing.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/include') diff --git a/llvm/include/llvm/ADT/Hashing.h b/llvm/include/llvm/ADT/Hashing.h index e4dc613652d..06f4ce215ec 100644 --- a/llvm/include/llvm/ADT/Hashing.h +++ b/llvm/include/llvm/ADT/Hashing.h @@ -338,7 +338,7 @@ inline size_t get_execution_seed() { // called, return that instead of the per-execution seed. const uint64_t seed_prime = 0xff51afd7ed558ccdULL; static size_t seed = fixed_seed_override ? fixed_seed_override - : static_cast(seed_prime); + : (size_t)seed_prime; return seed; } -- cgit v1.2.3