diff options
Diffstat (limited to 'WitnessRandomizer/Memory.cpp')
-rw-r--r-- | WitnessRandomizer/Memory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WitnessRandomizer/Memory.cpp b/WitnessRandomizer/Memory.cpp index 304b7b4..8ad5452 100644 --- a/WitnessRandomizer/Memory.cpp +++ b/WitnessRandomizer/Memory.cpp | |||
@@ -51,7 +51,7 @@ Memory::~Memory() { | |||
51 | 51 | ||
52 | void Memory::ThrowError() { | 52 | void Memory::ThrowError() { |
53 | std::string message(256, '\0'); | 53 | std::string message(256, '\0'); |
54 | FormatMessageA(4096, NULL, GetLastError(), 1024, &message[0], message.length(), NULL); | 54 | FormatMessageA(4096, NULL, GetLastError(), 1024, &message[0], static_cast<DWORD>(message.length()), NULL); |
55 | OutputDebugStringA(message.c_str()); | 55 | OutputDebugStringA(message.c_str()); |
56 | exit(EXIT_FAILURE); | 56 | exit(EXIT_FAILURE); |
57 | } | 57 | } |