Skip to content

Commit a5e5a70

Browse files
committed
C++style casts.
1 parent 6940a8f commit a5e5a70

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

NativeCore/Unix/EnumerateRemoteSectionsAndModules.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ extern "C" void EnumerateRemoteSectionsAndModules(RC_Pointer handle, EnumerateRe
5050
RC_UnicodeChar Path[PATH_MAXIMUM_LENGTH] = {};
5151
};
5252

53-
std::ifstream input(static_cast<std::stringstream&>(std::stringstream() << "/proc/" << (intptr_t)handle << "/maps").str());
53+
std::ifstream input(static_cast<std::stringstream&>(std::stringstream() << "/proc/" << reinterpret_cast<intptr_t>(handle) << "/maps").str());
5454

5555
std::unordered_map<int, ModuleInfo> modules;
5656

NativeCore/Windows/OpenRemoteProcess.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ RC_Pointer __stdcall OpenRemoteProcess(RC_Pointer id, ProcessAccess desiredAcces
1818
break;
1919
}
2020

21-
auto handle = OpenProcess(access, FALSE, (DWORD)id);
21+
auto handle = OpenProcess(access, FALSE, reinterpret_cast<DWORD>(id));
2222

2323
if (handle == nullptr || handle == INVALID_HANDLE_VALUE)
2424
{

0 commit comments

Comments
 (0)