Module: xenomai-forge
Branch: master
Commit: 0b6480c2a81cffd093fb17640d7b0b32705813ab
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=0b6480c2a81cffd093fb17640d7b0b32705813ab

Author: Philippe Gerum <r...@xenomai.org>
Date:   Fri Dec 14 17:37:30 2012 +0100

lib/cobalt: fix local __sched_cpucount implementation

---

 lib/cobalt/wrappers.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/cobalt/wrappers.c b/lib/cobalt/wrappers.c
index 2f33885..7fcbed1 100644
--- a/lib/cobalt/wrappers.c
+++ b/lib/cobalt/wrappers.c
@@ -388,7 +388,7 @@ int __sched_cpucount(size_t setsize, const cpu_set_t *setp)
        int count, shift;
        const char *p;
 
-       for (count = 0, p = setp; p < setp + setsize; p++) {
+       for (count = 0, p = setp; p < (char *)setp + setsize; p++) {
                shift = *p;
                while (shift) {
                        if (shift & 1)


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to