From 3652d25800eda10fd946fe9f008594530998ca9b Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Tue, 11 Oct 2005 12:19:05 +0000 Subject: [PATCH] Fix for pointer math -- ensure that we're interpreting by (char *), not (unsigned long*). Thanks to Paul Hargrove for catching this. This commit was SVN r7685. --- opal/mca/paffinity/linux/paffinity_linux_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opal/mca/paffinity/linux/paffinity_linux_module.c b/opal/mca/paffinity/linux/paffinity_linux_module.c index 2418ec0a95..edb65a8b34 100644 --- a/opal/mca/paffinity/linux/paffinity_linux_module.c +++ b/opal/mca/paffinity/linux/paffinity_linux_module.c @@ -149,7 +149,7 @@ static int linux_module_set(int id) } byte = id / 8; bit = id % 8; - mask[byte] = 1 << bit; + ((char *) mask)[byte] = 1 << bit; ret = sched_setaffinity(0, len, mask);