py/misc: Fix msvc and C++ compatibility.
Use an explicit cast to suppress the implicit conversion which started
popping up in recent compiler versions (and wasn't there yet in 07bf3179).
Signed-off-by: stijn <stijn@ignitron.net>
This commit is contained in:
@@ -357,7 +357,7 @@ static inline uint32_t mp_clzll(unsigned long long x) {
|
||||
// Microsoft don't ship _BitScanReverse64 on Win32, so emulate it
|
||||
static inline uint32_t mp_clzll(unsigned long long x) {
|
||||
unsigned long h = x >> 32;
|
||||
return h ? mp_clzl(h) : (mp_clzl(x) + 32);
|
||||
return h ? mp_clzl(h) : (mp_clzl((unsigned long)x) + 32);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user