summaryrefslogtreecommitdiff
path: root/src/common/x64/xbyak_util.h
diff options
context:
space:
mode:
authorraven02 <jacky.kktsui@yahoo.com.hk>2018-09-19 19:53:11 +0800
committerGitHub <noreply@github.com>2018-09-19 19:53:11 +0800
commitc8f9bbbf859c0e38cf691b64c67761382fcebfc2 (patch)
tree99529c2277a6b740a6e278985c5147fa649c5497 /src/common/x64/xbyak_util.h
parentb91f7d5d67a67115926ad03526f71a7cc3dfb326 (diff)
parentb33ce787b7959e1bfd3b5ae4886b6e137fb97711 (diff)
Merge branch 'master' into tlds
Diffstat (limited to 'src/common/x64/xbyak_util.h')
-rw-r--r--src/common/x64/xbyak_util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/x64/xbyak_util.h b/src/common/x64/xbyak_util.h
index 02323a017..5cc8a8c76 100644
--- a/src/common/x64/xbyak_util.h
+++ b/src/common/x64/xbyak_util.h
@@ -34,7 +34,7 @@ inline bool IsWithin2G(const Xbyak::CodeGenerator& code, uintptr_t target) {
template <typename T>
inline void CallFarFunction(Xbyak::CodeGenerator& code, const T f) {
static_assert(std::is_pointer_v<T>, "Argument must be a (function) pointer.");
- size_t addr = reinterpret_cast<size_t>(f);
+ std::size_t addr = reinterpret_cast<std::size_t>(f);
if (IsWithin2G(code, addr)) {
code.call(f);
} else {