[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.11-46-g9dc3f

From: Eli Zaretskii
Subject: [Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.11-46-g9dc3fc4
Date: Thu, 03 Jul 2014 16:31:33 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Guile".

The branch, stable-2.0 has been updated
       via  9dc3fc4dd474ce4da6a45dcf197e1f99a9a7047a (commit)
      from  5102fc3790a781af8fc124cc6f1e6a1fd990ceb9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 9dc3fc4dd474ce4da6a45dcf197e1f99a9a7047a
Author: Eli Zaretskii <address@hidden>
Date:   Thu Jul 3 19:30:02 2014 +0300

    Fix calculation of CPU set size for getaffinity.
    * libguile/posix.c (cpu_set_to_bitvector): Use CPU_SETSIZE, not
      sizeof, to compute the size of the CPU set.


Summary of changes:
 libguile/posix.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libguile/posix.c b/libguile/posix.c
index 1dcb5ac..7fc6903 100644
--- a/libguile/posix.c
+++ b/libguile/posix.c
@@ -1979,9 +1979,9 @@ cpu_set_to_bitvector (const cpu_set_t *cs)
   SCM bv;
   size_t cpu;
-  bv = scm_c_make_bitvector (sizeof (*cs), SCM_BOOL_F);
+  bv = scm_c_make_bitvector (CPU_SETSIZE, SCM_BOOL_F);
-  for (cpu = 0; cpu < sizeof (*cs); cpu++)
+  for (cpu = 0; cpu < CPU_SETSIZE; cpu++)
       if (CPU_ISSET (cpu, cs))
        /* XXX: This is inefficient but avoids code duplication.  */

GNU Guile

reply via email to

[Prev in Thread] Current Thread [Next in Thread]