mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 01:11:44 +00:00
libdivide.h: Silence "warning: non-constant-expression cannot be narrowed from type 'uint64_t' (aka 'unsigned long long') to 'long long' in initializer list in C++11 [-Wc++11-narrowing]".
The problem that the block of code in question works around was fixed in LLVM r82228 and landed in clang 2.7. git-svn-id: https://svn.eduke32.com/eduke32@5732 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
1f761df37f
commit
42d0f08d18
1 changed files with 1 additions and 1 deletions
|
@ -238,7 +238,7 @@ static inline __m128i libdivide__u64_to_m128(uint64_t x) {
|
|||
#elif defined(__ICC)
|
||||
uint64_t __attribute__((aligned(16))) temp[2] = {x,x};
|
||||
return _mm_load_si128((const __m128i*)temp);
|
||||
#elif __clang__
|
||||
#elif __clang__ && (2 > __clang_major__ || (2 == __clang_major__ && 7 > __clang_minor__))
|
||||
// clang does not provide this intrinsic either
|
||||
return (__m128i){x, x};
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue