Skip to content

Commit 0f7d680

Browse files
stinosdpgeorge
authored andcommitted
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 07bf317). Signed-off-by: stijn <[email protected]>
1 parent 31a1e2b commit 0f7d680

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/misc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ static inline uint32_t mp_clzll(unsigned long long x) {
357357
// Microsoft don't ship _BitScanReverse64 on Win32, so emulate it
358358
static inline uint32_t mp_clzll(unsigned long long x) {
359359
unsigned long h = x >> 32;
360-
return h ? mp_clzl(h) : (mp_clzl(x) + 32);
360+
return h ? mp_clzl(h) : (mp_clzl((unsigned long)x) + 32);
361361
}
362362
#endif
363363

0 commit comments

Comments
 (0)