diff options
| author | Matthew Parlane <parlane@gmail.com> | 2017-01-08 13:14:02 +1300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-08 13:14:02 +1300 |
| commit | c89aa79380cfa9dfd9bb9c52f0574f85e20aeece (patch) | |
| tree | 88be7d229820f21854c12bf53e3437b6e6e488af /Source/Core/Common/CodeBlock.h | |
| parent | 27d7c265e5213d56632bc043cbe0ac9960794acf (diff) | |
| parent | 9d8e8652fb17a802a74369f46a5033970fb92a89 (diff) | |
Merge pull request #4626 from lioncash/size
CodeBlock: Get rid of implicit sign-conversion in AllocCodeSpace
Diffstat (limited to 'Source/Core/Common/CodeBlock.h')
| -rw-r--r-- | Source/Core/Common/CodeBlock.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Core/Common/CodeBlock.h b/Source/Core/Common/CodeBlock.h index ea3de4fd6f..5696976a5a 100644 --- a/Source/Core/Common/CodeBlock.h +++ b/Source/Core/Common/CodeBlock.h @@ -4,7 +4,10 @@ #pragma once +#include <cstddef> + #include "Common/Assert.h" +#include "Common/CommonTypes.h" #include "Common/MemoryUtil.h" #include "Common/NonCopyable.h" @@ -39,7 +42,7 @@ public: } // Call this before you generate any code. - void AllocCodeSpace(int size, bool need_low = true) + void AllocCodeSpace(size_t size, bool need_low = true) { region_size = size; region = static_cast<u8*>(Common::AllocateExecutableMemory(region_size, need_low)); |
