summaryrefslogtreecommitdiff
path: root/rts
diff options
context:
space:
mode:
authorAndreas Klebinger <klebinger.andreas@gmx.at>2020-11-23 16:16:30 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-12-18 05:51:09 -0500
commitb4fcfd0fab8db08d7fa0c2cff087f1e89e865239 (patch)
tree740d15230d361b866ff57d922b9d609612f20bb4 /rts
parent7a93435b991513b71174c807b4e99ad90f4e5058 (diff)
downloadhaskell-b4fcfd0fab8db08d7fa0c2cff087f1e89e865239.tar.gz
OSMem.c: Use proper type for mbinds mask argument.
StgWord has different widths on 32/64bit. So use the proper type instead.
Diffstat (limited to 'rts')
-rw-r--r--rts/posix/OSMem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/posix/OSMem.c b/rts/posix/OSMem.c
index b2a0bcfafa..30d9981f16 100644
--- a/rts/posix/OSMem.c
+++ b/rts/posix/OSMem.c
@@ -364,7 +364,7 @@ void osBindMBlocksToNode(
{
#if HAVE_LIBNUMA
int ret;
- StgWord mask = 0;
+ unsigned long mask = 0;
mask |= 1 << node;
if (RtsFlags.GcFlags.numa) {
ret = mbind(addr, (unsigned long)size,