[rtems commit] Fix _Assert() statement
Sebastian Huber
sebh at rtems.org
Wed Nov 25 07:33:10 UTC 2015
Module: rtems
Branch: master
Commit: 8ce0b0cb190674bff3c9f8318567db4313fdfa5d
Changeset: http://git.rtems.org/rtems/commit/?id=8ce0b0cb190674bff3c9f8318567db4313fdfa5d
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 45c2292..8ecaebd 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