Eric Pouech : msvcrt*: Use correct integral type.
Alexandre Julliard
julliard at winehq.org
Tue Feb 1 15:21:36 CST 2022
Module: wine
Branch: master
Commit: b7b841eb69d64715ef1aaab6ca69f1c6e3df7816
URL: https://source.winehq.org/git/wine.git/?a=commit;h=b7b841eb69d64715ef1aaab6ca69f1c6e3df7816
Author: Eric Pouech <eric.pouech at gmail.com>
Date: Tue Feb 1 14:05:09 2022 +0100
msvcrt*: Use correct integral type.
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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-cvs
mailing list