mirror of
https://github.com/webmproject/libwebp.git
synced 2025-01-01 00:08:24 +01:00
msvc: fix pointer type warning in BitsLog2Floor
_BitScanReverse() takes an unsigned long*
http://msdn.microsoft.com/en-us/library/fbxyd7zd.aspx
fixes:
C4057: 'function': 'unsigned long *' differs in indirection to slightly
different base types from 'uint32_t *'
fixes issue #253
(cherry picked from commit 0250dfcc19
)
Change-Id: I0101ef7be18c7ed188b35e9b17e7f71290953786
This commit is contained in:
parent
84ecd9d85c
commit
382de22c84
@ -90,7 +90,7 @@ static WEBP_INLINE int BitsLog2Floor(uint32_t n) {
|
|||||||
#pragma intrinsic(_BitScanReverse)
|
#pragma intrinsic(_BitScanReverse)
|
||||||
|
|
||||||
static WEBP_INLINE int BitsLog2Floor(uint32_t n) {
|
static WEBP_INLINE int BitsLog2Floor(uint32_t n) {
|
||||||
uint32_t first_set_bit;
|
unsigned long first_set_bit;
|
||||||
_BitScanReverse(&first_set_bit, n);
|
_BitScanReverse(&first_set_bit, n);
|
||||||
return first_set_bit;
|
return first_set_bit;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user