1
1

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.
Этот коммит содержится в:
Jeff Squyres 2005-10-11 12:19:05 +00:00
родитель 4d0154fe3a
Коммит 3652d25800

Просмотреть файл

@ -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);