aboutsummaryrefslogtreecommitdiffstats
path: root/erts/lib_src/common
diff options
context:
space:
mode:
authorR. Blaine Whittle <[email protected]>2013-02-19 17:51:03 +0100
committerSverker Eriksson <[email protected]>2013-02-20 15:28:59 +0100
commit248a9d7095cc686c1c0f89ed4e69e54e42e0c013 (patch)
tree5005ef382f0eba888313ebbb88ce5ba42091707e /erts/lib_src/common
parent28dce0b9ea79f8635a3253da7f4d3c6e49cb48b8 (diff)
downloadotp-248a9d7095cc686c1c0f89ed4e69e54e42e0c013.tar.gz
otp-248a9d7095cc686c1c0f89ed4e69e54e42e0c013.tar.bz2
otp-248a9d7095cc686c1c0f89ed4e69e54e42e0c013.zip
erts: Fix type bug in get_proc_affinity for windows
Diffstat (limited to 'erts/lib_src/common')
-rw-r--r--erts/lib_src/common/erl_misc_utils.c3
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;