diff options
author | R. Blaine Whittle <bwhittle@gmail.com> | 2013-02-19 17:51:03 +0100 |
---|---|---|
committer | Sverker Eriksson <sverker@erlang.org> | 2013-02-20 15:28:59 +0100 |
commit | 248a9d7095cc686c1c0f89ed4e69e54e42e0c013 (patch) | |
tree | 5005ef382f0eba888313ebbb88ce5ba42091707e /erts | |
parent | 28dce0b9ea79f8635a3253da7f4d3c6e49cb48b8 (diff) | |
download | erlang-248a9d7095cc686c1c0f89ed4e69e54e42e0c013.tar.gz |
erts: Fix type bug in get_proc_affinity for windows
Diffstat (limited to 'erts')
-rw-r--r-- | erts/lib_src/common/erl_misc_utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/erts/lib_src/common/erl_misc_utils.c b/erts/lib_src/common/erl_misc_utils.c index 11e2c56f61..9e9c142449 100644 --- a/erts/lib_src/common/erl_misc_utils.c +++ b/erts/lib_src/common/erl_misc_utils.c @@ -192,7 +192,8 @@ struct erts_cpu_info_t_ { static __forceinline int get_proc_affinity(erts_cpu_info_t *cpuinfo, cpu_set_t *cpuset) { - DWORD pamask, samask; + DWORD_PTR pamask; + DWORD_PTR samask; if (GetProcessAffinityMask(GetCurrentProcess(), &pamask, &samask)) { *cpuset = (cpu_set_t) pamask; return 0; |