[rtems commit] Fix _Assert() statement

Sebastian Huber sebh at rtems.org
Wed Nov 25 07:36:10 UTC 2015


Module:    rtems
Branch:    4.11
Commit:    7828f1c3aac19e9f93b3e8685b29f4ec987e0a6e
Changeset: http://git.rtems.org/rtems/commit/?id=7828f1c3aac19e9f93b3e8685b29f4ec987e0a6e

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Nov 25 07:55:00 2015 +0100

Fix _Assert() statement

---

 cpukit/rtems/src/eventsurrender.c | 2 +-
 cpukit/score/src/threadtimeout.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cpukit/rtems/src/eventsurrender.c b/cpukit/rtems/src/eventsurrender.c
index 6a14467..5726cc8 100644
--- a/cpukit/rtems/src/eventsurrender.c
+++ b/cpukit/rtems/src/eventsurrender.c
@@ -106,7 +106,7 @@ void _Event_Surrender(
     } else {
       _Assert(
         _Thread_Wait_flags_get( the_thread )
-          == wait_class | THREAD_WAIT_STATE_BLOCKED
+          == ( wait_class | THREAD_WAIT_STATE_BLOCKED )
       );
       _Thread_Wait_flags_set( the_thread, ready_again );
       unblock = true;
diff --git a/cpukit/score/src/threadtimeout.c b/cpukit/score/src/threadtimeout.c
index b3d0116..eda2f79 100644
--- a/cpukit/score/src/threadtimeout.c
+++ b/cpukit/score/src/threadtimeout.c
@@ -72,7 +72,7 @@ void _Thread_Timeout( Objects_Id id, void *arg )
     } else {
       _Assert(
         _Thread_Wait_flags_get( the_thread )
-          == wait_class | THREAD_WAIT_STATE_BLOCKED
+          == ( wait_class | THREAD_WAIT_STATE_BLOCKED )
       );
       _Thread_Wait_flags_set( the_thread, ready_again );
       unblock = true;



More information about the vc mailing list