[PATCH 04/17] dlls/msvcrt*: use correct integral type
Eric Pouech
eric.pouech at gmail.com
Tue Feb 1 07:05:09 CST 2022
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
---
dlls/concrt140/details.c | 2 +-
dlls/msvcp90/details.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/concrt140/details.c b/dlls/concrt140/details.c
index 13a2fbbca96..59345c52871 100644
--- a/dlls/concrt140/details.c
+++ b/dlls/concrt140/details.c
@@ -434,7 +434,7 @@ typedef struct compact_block
/* Return the integer base-2 logarithm of (x|1). Result is 0 for x == 0. */
static inline unsigned int log2i(unsigned int x)
{
- unsigned int index;
+ ULONG index;
BitScanReverse(&index, x|1);
return index;
}
diff --git a/dlls/msvcp90/details.c b/dlls/msvcp90/details.c
index d2969516af4..6b54ea9597f 100644
--- a/dlls/msvcp90/details.c
+++ b/dlls/msvcp90/details.c
@@ -448,7 +448,7 @@ typedef struct compact_block
/* Return the integer base-2 logarithm of (x|1). Result is 0 for x == 0. */
static inline unsigned int log2i(unsigned int x)
{
- unsigned int index;
+ ULONG index;
BitScanReverse(&index, x|1);
return index;
}
More information about the wine-devel
mailing list