summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraSoujyuTanaka <soujyu.tanaka@access-company.com>2020-04-12 03:58:02 +0900
committerRichard Levitte <levitte@openssl.org>2020-07-15 23:05:55 +0200
commit4da1981faacf2e141aab2b4965fccfd676765648 (patch)
tree81a3c658c72c9c8281155335bfa0f788c5488066
parenta5b8c19cdab4e330af0377e2fa0fdd1de2f67d59 (diff)
Changed uintptr_t to size_t. WinCE6 doesn't seem it have the definition.
Reviewed-by: Mark J. Cox <mark@awe.com> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/11526) (cherry picked from commit 6c2a56beec847da18e5ac60a30219f0dea39baf9)
-rw-r--r--crypto/dso/dso_win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/dso/dso_win32.c b/crypto/dso/dso_win32.c
index 37892170c0..5066331c86 100644
--- a/crypto/dso/dso_win32.c
+++ b/crypto/dso/dso_win32.c
@@ -565,8 +565,8 @@ static int win32_pathbyaddr(void *addr, char *path, int sz)
/* Enumerate the modules to find one which includes me. */
do {
- if ((uintptr_t) addr >= (uintptr_t) me32.modBaseAddr &&
- (uintptr_t) addr < (uintptr_t) (me32.modBaseAddr + me32.modBaseSize)) {
+ if ((size_t) addr >= (size_t) me32.modBaseAddr &&
+ (size_t) addr < (size_t) (me32.modBaseAddr + me32.modBaseSize)) {
(*close_snap) (hModuleSnap);
FreeLibrary(dll);
# ifdef _WIN32_WCE